On Apr 10, 5:18 pm, Marnen Laibow-Koser <[email protected]> wrote:
> I have a quick question as I try to build an application using Google
> AJAX Local Search.  In order to associate my own data with each search
> result, I'm trying to find or derive a unique ID for each search
> result.
[...]
> Does
> anyone know if this URL (or any other GlocalResult data) will in fact
> work as a unique identifier?

I just experimented a bit more.  Some findings:

* The .url property itself contains "&q=search+string", so it is not a
reliable unique ID for a business, as the same business may be found
with different search strings.
* The latlng URL parameter, however, contains a third value (besides
the latitude and longitude) that appears to be a unique ID: when I
change it, and leave the remainder of the URL intact, I can no longer
see the detail page.  However, when I change the latitude and
longitude, and leave the third component intact, the detail page still
displays.

So it looks like latlng in the detail URL is in the form "<latitude>
%2C<longitude>%2C<unique_id>".  Can anyone confirm this or suggest a
better way of deriving a unique ID?

>
> Thanks,
> --
> Marnen Laibow-Koser
> [email protected]
> http://www.marnen.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to