On Oct 30, 12:28 am, Elektroschnitzel <[email protected]> wrote: > Found in Release: > current ;) > > Detailed description: > I tried my first script with google maps api and have a strange > behaviour. > I have a database with stored traders of a client of our company. > > First the visitor enters a postalcode and then I use OpenGeoDB to get > all > postalcodes in the defined catchment area. These will be compared with > the list of > possible traders. > > In this skript it is possible that there will be more than 10 results. > Now > we come to the conrete phenomenon. Sometimes the skript getLocation or > getLatLng of gClientGeoCoder returns NULL whether the address exists > and > returns a postion in a single request. > > Is there a timing problem? Now it check the returned point if not NULL > but > this is no acceptable resolution. May someone help me? > > It it also possible that the marker of the 13th or 17th trader is > placed in the map so some addresses of the traderslist on the left are > skiped because of the returned NULL position results of getLatLng or > getLocation... > > For an example try > > http://www.decor-walther.de/myfactory33/CMS/Haendlersuche.aspx > > and enter to the first input "giessen" and the second "60". > > There you can see that more addresse are found instead of the markers > positioned on the map...
All of the markers work this way (but this code checks for errors and will let you know the reason the marker doesn't show up). Add many more and you will start to see errors... http://www.geocodezip.com/example_geomulti_bad3_xml.asp?filename=decor-walther_de.xml Don't geocode known locations everytime the page loads, do it once offline, and use the resulting latitude and longitude on page load. Only use the geocoder for addresses entered dynamically. -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
