On Jun 6, 5:45 am, Alex <[email protected]> wrote:
> Hello,
>
> I'm looking for a solution using Geocoding.
from the "articles" section of the documentation:
Geocoding Strategies
An overview of different strategies you can use for making sure
you stay within the Google Maps API geocoding limits. This is a good
article to read if you find you are frequently running into the quota
limits of the Maps API Geocoders.
http://code.google.com/apis/maps/articles/geocodestrat.html
> I work on an asynchronous maps API (JS V3).
>
> The first geocoder is used to center the map on a region selected by
> the user (via multiple dropdown).
> Here no problem it's running.
> The second geocoding function I wanted to push have to push the
> markers via a string request (brand stores here)
> But it's not running well..
What does that mean? What error are you getting?
Either provide complete information of read and follow the posting
guidelines:
http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e
(provide a link to your map, not code)
-- Larry
> May have I made a mistake here.
>
> Can you help me ? :)
>
> geocoder = new google.maps.Geocoder();
> geocoder.geocode( { 'address': masterSelection },
> function(results, status) {
> if (status == google.maps.GeocoderStatus.OK) {
> map.setCenter(results[0].geometry.location);
> } else {
> alert("Geocode was not successful for the following reason:
> " +
> status);
> }
> });
>
> geocoder2 = new google.maps.Geocoder();
> var brandName = "Brand Name";
> geocoder2.geocode( { 'address': brandName }, function(resultat, etat)
> {
> if (etat == google.maps.GeocoderStatus.OK) {
> var marker = new google.maps.Marker({
> map: map,
> position: resultat[0].geometry.location
> });
> } else {
> alert("MARKER PROBLEM: " + etat);
> }
> });
>
> Thanks !
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.