views:

148

answers:

1

Hello! I’am using Google Map’s GClientGeocoder for reversing map coordinates into string address. Exactly as shown in google’s example here http://code.google.com/apis/ajax/playground/?exp=maps#geocoding_reverse

But, I would like to remove LocalityName (place.AddressDetails.Country.AdministrativeArea.Locality.LocalityName) from place.address and have the address string without any LocalityName.

The straight way will be join all AddressDetails elements, excluding LocalityName. However order of the structure elements in final string representation is depends from geographical location.

For example:

Order for Australia city:

ThoroughfareName + “, ” + LocalityName + “ ” + AdministrativeAreaName + “ ” + PostalCodeNumber + “, ” + CountryName

Order for Russian city:

CountryName + “, ” + PostalCodeNumber + “, ” + LocalityName + “, ” +ThoroughfareName

Moreover PostalCodeNumber was not supplied in AddressDetails for the last example.

Please, help!

A: 

By jotalinux2 A URL abaixo retorna uma string com lat e long a partir de um logradouro completo concatenar assim: Servico Google: http://maps.google.com/maps/geo?q= + *Endereco URLEncode(strEndereco, UTF-8) * + ..obs:funciona so com string tbm...rs.. "Serra dos aimores, 999- Itaim Paulista - Sao Paulo - SP"

* Tipo de saida: + * output=csv *Chave do Maps: + * key=

(Com urlencoded)

*Retona *

200,8,-23.4989982,-46.3974215.

jotalinux2
Lamento que usted dice?
Art