Latitude longitude API's [closed]

安稳与你 提交于 2019-12-21 18:32:52

问题


I have an address database and I tried to find latitude and longitude using google geocoding and yahoo API. Is there any other popular API's or programs are there. I'm using ubuntu platform.


回答1:


I'm aware of at least one other geocoding system, OpenStreetMap. The only major differences I've found with any of these API's is the level of detail in each. OpenStreetMap has significantly less data, but is much easier to integrate with custom data. Also, I think the maps produced by google are the most beatiful of the three.




回答2:


I was usually using Google Maps geocoding service over HTTP which returns you Json or XML as you like. Browse around here for more information about this.

Another option may be GeoNames.org. It also provides some interesting services and client libraries.




回答3:


With both of those that you mention, if you're mass-processing them or not showing a map to the user at the time of querying the API, you're violating TOS.

A better solution to meet your needs would be something like LiveAddress. I actually work at SmartyStreets where we develop it ourselves -- there's no license restrictions such as would prevent you from running even millions of addresses. In addition to returning coordinates, LiveAddress will also verify the existence of addresses and standardize them for you. This is helpful in removing duplicates and has a lot of business advantages.

If you have any further address-related questions I'll be happy to personally assist.




回答4:


You might also find geocoder.us useful.




回答5:


Using YQL, u can obtain a list of possible forecast First step: Reverse geocoding

SELECT woeid 
FROM geo.places 
WHERE text="##LATITUDE##, ##LONGITUDE##"

then apply a filter to order results by placeType. This help U to order forecast by map level accuracy (town, city, postal code, region, ....)

SELECT woeid 
FROM geo.places
WHERE text="##LATITUDE##, ##LONGITUDE##" | 
SORT(field="placeTypeName.code")

Now use simile join to get all forecasts by woeid resulted by last query and filter null results

SELECT channel 
FROM weather.woeid 
WHERE w in (
    SELECT woeid 
    FROM geo.places 
    WHERE text="##LATITUDE##, ##LONGITUDE##" | 
    SORT(field="placeTypeName.code")) 
AND channel.


来源:https://stackoverflow.com/questions/1420110/latitude-longitude-apis

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!