On Nov 19, 5:30 am, Beto1972 <[email protected]> wrote:
> I need some help.
> I'm placing in my website a Google Maps API. I already have my code
> and placed onde of your exemples in my web page. But the exemple you
> give has a latitude and longitude in it and always goes to the same
> place.
> What I want is the map to show the city of the person who is logged in
> to my site. If I had the coordenats, Long and Lat, it would be easy to
> change, but I only have the city name and country.
> How can I informe the API the name of the city and country, so that
> the maps centers on that especific city.

Converting an address to a latitude and longitude is called geocoding:
http://code.google.com/apis/maps/documentation/services.html#Geocoding

> Another thing I want to do in my site is to have a world map with
> markers in all the cities that I have people registered.

Geocode the city when the person registers, and put a marker there
when the map opens.

  -- Larry

> If anyone can help, I would apreciate it.
> Sorry if I made any mistakes in my english.
> Best wishes,
> Humberto Ferreira

--

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=.


Reply via email to