javascript 如何将位智数据与我的网页集成?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12871404/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 17:18:46  来源:igfitidea点击:

How to integrate waze data with my web page?

javascriptjqueryajaxintegrate

提问by user1666761

Waze is an application, which offers an actual traffic information. There is also a livemap Waze livemap- where are marks as you can see.

Waze 是一个提供实际交通信息的应用程序。还有一个实时地图Waze 实时地图- 如您所见,标记在哪里。

So, I found some site: Check this link - egarazand I'm really curious how did egaraz.cz fetch (parse) data (marks) from Waze, because there is no chance to do that. Or do they have some kind of deal? I don't know.

所以,我找到了一些网站:检查这个链接 - egaraz,我真的很好奇egaraz.cz是如何从 Waze 获取(解析)数据(标记)的,因为没有机会这样做。或者他们有某种交易?我不知道。

I tried to download all mentioned webpages to my computer, I read all javascript files and everything and found just nothing. Maybe I overlooked some...

我试图将所有提到的网页下载到我的计算机上,我阅读了所有 javascript 文件和所有内容,但什么也没找到。也许我忽略了一些...

Can you just help me and (try to) say me how do they did that? Or suggest some working solution/s..

你能帮我(试着)告诉我他们是怎么做到的吗?或建议一些工作解决方案/s..

采纳答案by Breno Salgado

I did some investigation on this and found some curious stuff...

我对此做了一些调查,发现了一些奇怪的东西......

It seems it's sort of hidden but there's a Waze Wiki, here's your answer:

它似乎有点隐藏,但有一个 Waze Wiki,这是您的答案:

API - use waze maps on your website

For further information please contact [email protected]

API - 在您的网站上使用位智地图

如需更多信息,请联系 [email protected]

http://www.waze.com/wiki/index.php/API_-_use_waze_maps_on_your_website(so maybe you gotta pay for it, anyhow, they're probably interested in knowing what you wanna do beforehand)

http://www.waze.com/wiki/index.php/API_-_use_waze_maps_on_your_website(所以也许你必须为此付费,无论如何,他们可能有兴趣事先知道你想做什么)

Now the interesting part is that Waze source wasactually open ( seems it's not the last version tho ) https://github.com/mkoloberdin/waze, http://www.waze.com/wiki/index.php/Source_code(edit: link is down)

现在最有趣的部分是,Waze的来源真正开放的(似乎这不是最后的版本寿) https://github.com/mkoloberdin/wazehttp://www.waze.com/wiki/index.php/Source_code (编辑:链接已关闭)

And a guy even did a Linux backport( didn't see if it works yet )

还有一个人甚至做了一个 Linux backport(还没看它是否有效)

https://github.com/sashakh/waze

https://github.com/sashakh/waze

Edit: Theoretically it could be possible to hack an integration but this is old stuff, Waze stopped releasing the source since v3.0 and it's possible that they've probably added additional barriers to the data(I've actually ran the linux port after making this post and it seemed to work, that was the farthest I went tho)

编辑:理论上有可能破解集成,但这是旧东西,Waze 从 v3.0 开始停止发布源代码,并且他们可能已经为数据添加了额外的障碍(我实际上在之后运行了 linux 端口)发表这篇文章,它似乎奏效了,那是我走得最远的地方)

回答by Nimrod007

open-source project that wrapper waze functionality

包装 Waze 功能的开源项目

its written in java. can be used as a service or as a runnable server.

它是用java写的。可用作服务或可运行的服务器。

https://github.com/Nimrod007/waze-api

https://github.com/Nimrod007/waze-api

link to docs:

链接到文档:

http://htmlpreview.github.io/?https://github.com/Nimrod007/waze-api/blob/master/docs.html

http://htmlpreview.github.io/?https://github.com/Nimrod007/waze-api/blob/master/docs.html

it has an endpoint for traffic information according to given coordinates.

根据给定的坐标,它有一个交通信息的端点。