Getting nearby places

97 views
Skip to first unread message

sande...@zeetozed.com

unread,
Jun 7, 2011, 10:18:56 PM6/7/11
to Google Maps JavaScript API v3
Would much appreciate a nudge in the right direction below re. a
technical question wrt. LBS.
For iPhone/mobile dev purposes....

My need is very basic, I think. But, I cannot find the answer for some
reason.

I want to get all places around a lat/long with a radius. I have done
plenty of cursory research, so here is a very specific scenario...

If you go to the following link (a random point on the Stanford
campus) -

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=37.422262,-122.169261+nearby&aq=&sll=37.422419,-122.168875&sspn=0.003868,0.00346&ie=UTF8&hq=&hnear=562+Mayfield+Ave,+Stanford,+California+94305&ll=37.422684,-122.168967&spn=0.003868,0.00346&z=18


You will see a number of buildings NAMED on the map.

For example, Sigma Nu, Casa Italiana, Bob etc. How do I get access to
those names within a radius around that lat/long? Is there a Fusion
Table layer somewhere?

After thorough search using Google Places, Yahoo, Geo, SimpleGeo,
FWIX, etc I have NOT been able to get those names through any API.

Here is the closest thing I could find -- Google Place Search API.
It returns ìMayfield Avenueî and no other result.

https://maps.googleapis.com/maps/api/place/search/json?location=37.422262,-122.169261&radius=1&sensor=true&key=<...enter
your own key>

The lat/long is 37.422262,-122.169261

en4ce

unread,
Jun 8, 2011, 6:00:15 AM6/8/11
to Google Maps JavaScript API v3
i just tested it on my page and i am using the palces api

check http://www.youspots.com/?mapid=2789 and see if these are that
buildings NAMED (in maps.google) on the map

password is test

On 8 Jun., 04:18, "sandeepj...@zeetozed.com"
<sandeepj...@zeetozed.com> wrote:
> Would much appreciate a nudge in the right direction below re. a
> technical question wrt. LBS.
> For iPhone/mobile dev purposes....
>
> My need is very basic, I think. But, I cannot find the answer for some
> reason.
>
> I want to get all places around a lat/long with a radius.  I have done
> plenty of cursory research, so here is a very specific scenario...
>
> If you go to the following link (a random point on the Stanford
> campus) -
>
> http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=37.422262...
>
> You will see a number of buildings NAMED on the map.
>
> For example, Sigma Nu, Casa Italiana, Bob etc.  How do I get access to
> those names within a radius around that lat/long?  Is there a Fusion
> Table layer somewhere?
>
> After thorough search using Google Places, Yahoo, Geo, SimpleGeo,
> FWIX, etc I have NOT been able to get those names through any API.
>
> Here is the closest thing I could find -- Google Place Search API.
> It returns ìMayfield Avenueî and no other result.
>
> https://maps.googleapis.com/maps/api/place/search/json?location=37.42...<...enter

Chris Broadfoot

unread,
Jun 8, 2011, 12:32:35 PM6/8/11
to google-map...@googlegroups.com

sande...@zeetozed.com

unread,
Jun 8, 2011, 5:05:09 PM6/8/11
to Google Maps JavaScript API v3
Thanks for responding. :)

Not sure what the link is supposed to show me.

But, I don't see any of the named buildings as parsed out spots.

Your map image shows Mars, Xanadu, Casa Italiana, Sigma Nu, but how to
I get that data in an API?

sj

On Jun 8, 3:00 am, en4ce <djen...@googlemail.com> wrote:
> i just tested it on my page and i am using the palces api
>
> checkhttp://www.youspots.com/?mapid=2789and see if these are that

sande...@zeetozed.com

unread,
Jun 8, 2011, 5:06:12 PM6/8/11
to Google Maps JavaScript API v3
Thanks for responding.

Indeed. Tried radius=5 and10, and still got only 1 result.

Sandeep

On Jun 8, 9:32 am, Chris Broadfoot <c...@google.com> wrote:
> On Wed, Jun 8, 2011 at 12:18 PM, sandeepj...@zeetozed.com <
>
> sandeepj...@zeetozed.com> wrote:
>
> >https://maps.googleapis.com/maps/api/place/search/json?location=37.42...

sande...@zeetozed.com

unread,
Jun 8, 2011, 5:09:14 PM6/8/11
to Google Maps JavaScript API v3
Chris - The issue is that the building names I want appear on the map
(embedded in the image). But, I can't find an API to access them.

On Jun 8, 2:06 pm, "sandeepj...@zeetozed.com"

en4ce

unread,
Jun 8, 2011, 5:50:00 PM6/8/11
to Google Maps JavaScript API v3
i just thought that this are maybe the places / names you are looking
for, no biggy

On 8 Jun., 23:09, "sandeepj...@zeetozed.com"

Chris Broadfoot

unread,
Jun 8, 2011, 6:28:24 PM6/8/11
to google-map...@googlegroups.com
On Thu, Jun 9, 2011 at 7:06 AM, sande...@zeetozed.com <sande...@zeetozed.com> wrote:
Indeed.  Tried radius=5 and10, and still got only 1 result.

Check the docs:

radius (required) — The distance (in meters) within which to return Place results. The recommended best practice is to set radius based on the accuracy of the location signal as given by the location sensor. Note that setting a radius biases results to the indicated area, but may not fully restrict results to the specified area.

You're only searching a radius of ten metres!

This search comes up with many results:

--
http://twitter.com/broady

sande...@zeetozed.com

unread,
Jun 9, 2011, 5:29:50 AM6/9/11
to Google Maps JavaScript API v3
Wow. Can't believe i missed that. I think the other APIs I looked at
were km or miles. Thanks.

Still not getting those building names, but definitely, things are
warmer.

sj
Reply all
Reply to author
Forward
0 new messages