开发者

How can I Implement Yelp's Map Search and Search by zip code or by city name

How can I implement yelp like search?

There are 2 types of searches on yelp.

  1. Simple search using the zip code, city and state in U.S.

    I'm using PostgreSQL and wonder if there is good dataset that I can use that has city, state and zip code. I was hoping to find a good geo shape file and use geoDjango where I can just use, say Store.objects.filter(coordinates__in=cityNameORZipCode).

    There seem to be some zip code database that I can use, but I really don't know where I can find a good city, state. The last option is to create my own cityname and state table and link to Stores, but not sure if this is smart thing to do.....hm.

  2. Yelp has map search.

    If you zoom in or out the google map, it searches local businesses according to the map area you are viewing. Think this is amazing. How can I do this?

开发者_JS百科It's looking dark right now. Please shed me some light.


You're asking a very broad and unanswerable question, but a good place to start for data in the U.S. is at the Census Bureau. For example:

  • State and State Equivalent Areas
  • County and County Equivalent Areas

The full list:

  • http://www.census.gov/geo/www/cob/bdy_files.html
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜