开发者

Locating Businesses by Latitude and Longitude (API?/Webservice?)

开发者 https://www.devze.com 2022-12-18 14:36 出处:网络
I am looking for a free database (csv, tab delimited, xml, etc) or even a web service or API which will allow me to query开发者_开发问答 for business listings within a certain distance of a latitude a

I am looking for a free database (csv, tab delimited, xml, etc) or even a web service or API which will allow me to query开发者_开发问答 for business listings within a certain distance of a latitude and longitude.

A global scope would be perfect, but I would settle for Canada/US information.

Does anyone know of anything like this?


Google AJAX search API offers this kind of service (local search) if you use the Google Maps API, see http://code.google.com/intl/fr/apis/ajaxsearch/documentation/

Apparently Yahoo! does too (see http://developer.yahoo.com/search/local/localSearch.html), if you do not plan a commercial use.


If you want to do this right, here is what you need:

  • Database of all locations, with long/lat coords
  • Database of all businesses
  • Address --> long/lat conversion system, if your business database is not already geocoded

I can't help you out with the business database, but here is a good resource for the "all locations" database:

http://www.geobytes.com/freeservices.htm

(Scroll down to the bottom of the page - you're looking for "GeoWorldMap".)

It contains a set of text files that are designed to be imported into a relational database. It's the most complete (free) resource that I've been able to find for this sort of task.


The Google Maps Places API provides exactly what you're looking for: https://developers.google.com/places/documentation/search

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号