Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

searching for business in google maps

 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey,

anyone has any idea about the logic behind looking up businesses in google maps. if i say "pizza near 92109" in google maps, i put markers around the zipcode for pizza places. I was trying to do something same with range too. say " 25 miles with in the radius of zipcode" .. it is possible to find the distance between 2 zipcodes.. if i say " pizza near 25 miles of 92109" one option i can think of is finding all pizza location in my database and find the distance of the business from the specified zipcode and if it falls with in the radius, display it.. I didnt really like that idea that much.
other option would be add region for each business, find the region from the zipcode and search for matching business in the region..

I would love to hear more ideas or suggestions on the same.

Thanks for your time..


- Raj
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Distance between two zip codes: http://www.zipcodeworld.com/samples/distance.java.html
Or in PHP: http://www.micahcarrick.com/php-zip-code-range-and-distance-calculation.html

There are millions more examples in Google...
 
Grow your own food... or this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic