On Mar 13, 2:30 pm, qbuster <[email protected]> wrote:
> I have a MySql table of around 200 addresses with mostly UK
> postscodes. I wrote routine to populate the table via Google geocode
> with lat:long coordinates for each address.
>
> I stored the lat:long coords in float(12,8) fields, a typical row
> value looks like:
> 'DE13 7AT', 52.83633423, -1.61851680 (8 decimal points as provided by
> Google's geocode server).
>
> When I try to display these coords in a standard fashion a number of
> them don't
> display a marker (the one above is an example).
>
> If I change these values to 52.836334, -1.618516 (6 decimal points)
> the marker displays correctly. Interestingly, not all coords to 8
> decimal points fail to show - is this a bug?

It's not a bug in the API, because it can place markers with 12
decimal places. Without seeing your page and being able to debug it,
it's not really possible to say what's going wrong with your code or
your data.

However, since 6dp is an accuracy of inches -- greater than the
accuracy of the map in most cases -- 8dp is overkill. If six works,
just truncate your numbers.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to