I think, thoroughfare is not the right place to look for those kind of
information, look for the translation. And where is the street_name? The
split is simply done at ",".
Here's the sample:
{
"name": "Jungfernstieg 20, Hamburg",
"Status": {
"code": 200,
"request": "geocode"
},
"Placemark": [ {
"id": "p1",
"address": "Jungfernstieg 20, 20354 Hamburg, Deutschland",
"AddressDetails": {"Country": {"CountryNameCode":
"DE","CountryName": "Deutschland","AdministrativeArea":
{"AdministrativeAreaName": "Hamburg","SubAdministrativeArea":
{"SubAdministrativeAreaName": "Hamburg","Locality": {"LocalityName":
"Hamburg","DependentLocality": {"DependentLocalityName":
"Neustadt","Thoroughfare":{"ThoroughfareName": "20
Jungfernstieg"},"PostalCode": {"PostalCodeNumber":
"20354"}}}}}},"Accuracy": 8},
"Point": {
"coordinates": [ 9.9919174, 53.5535787, 0 ]
}
} ]
}
And a bit more "complex" the lookup for "Pariser Platz 1"
{
"name": "Pariser Platz 1",
"Status": {
"code": 200,
"request": "geocode"
},
"Placemark": [ {
"id": "p1",
"address": "Pariser Platz 1, 10117 Berlin, Deutschland",
"AddressDetails": {"Country": {"CountryNameCode":
"DE","CountryName": "Deutschland","AdministrativeArea":
{"AdministrativeAreaName": "Berlin","SubAdministrativeArea":
{"SubAdministrativeAreaName": "Berlin","Locality": {"LocalityName":
"Berlin","DependentLocality": {"DependentLocalityName":
"Mitte","Thoroughfare":{"ThoroughfareName": "1 Pariser
Platz"},"PostalCode": {"PostalCodeNumber": "10117"}}}}}},"Accuracy": 8},
"Point": {
"coordinates": [ 13.3782567, 52.5159982, 0 ]
}
}, {
"id": "p2",
"address": "Pariser Platz 1, 81667 M..nchen, Deutschland",
"AddressDetails": {"Country": {"CountryNameCode":
"DE","CountryName": "Deutschland","AdministrativeArea":
{"AdministrativeAreaName": "Bayern","SubAdministrativeArea":
{"SubAdministrativeAreaName": "M..nchen","Locality": {"LocalityName":
"M..nchen","DependentLocality": {"DependentLocalityName":
"Au-Haidhausen","Thoroughfare":{"ThoroughfareName": "1 Pariser
Platz"},"PostalCode": {"PostalCodeNumber": "81667"}}}}}},"Accuracy": 8},
"Point": {
"coordinates": [ 11.6003819, 48.1284354, 0 ]
}
}, {
"id": "p3",
"address": "Pariser Platz 1, 50765 K..ln, Deutschland",
"AddressDetails": {"Country": {"CountryNameCode":
"DE","CountryName": "Deutschland","AdministrativeArea":
{"AdministrativeAreaName":
"Nordrhein-Westfalen","SubAdministrativeArea":
{"SubAdministrativeAreaName": "K..ln","Locality": {"LocalityName":
"K..ln","DependentLocality": {"DependentLocalityName":
"Chorweiler","Thoroughfare":{"ThoroughfareName": "1 Pariser
Platz"},"PostalCode": {"PostalCodeNumber": "50765"}}}}}},"Accuracy": 8},
"Point": {
"coordinates": [ 6.8987753, 51.0222066, 0 ]
}
}, {
"id": "p4",
"address": "Pariser Platz 1, 70173 Stuttgart, Deutschland",
"AddressDetails": {"Country": {"CountryNameCode":
"DE","CountryName": "Deutschland","AdministrativeArea":
{"AdministrativeAreaName": "Baden-W..rttemberg","SubAdministrativeArea":
{"SubAdministrativeAreaName": "Stuttgart","Locality": {"LocalityName":
"Stuttgart","DependentLocality": {"DependentLocalityName":
"Stuttgart","Thoroughfare":{"ThoroughfareName": "1 Pariser
Platz"},"PostalCode": {"PostalCodeNumber": "70173"}}}}}},"Accuracy": 8},
"Point": {
"coordinates": [ 9.1822718, 48.7885962, 0 ]
}
} ]
}
Tobias Schwab schrieb:
> Because I do have to access the street and house_number directly.
> Otherwise I would have to split the Address element by some rules.
> There is already a field for the street_name and the house number but
> it is just in the wrong format.
>
> On Nov 25, 8:44 pm, "Neil.Young" <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>> why aren't you using the address element in the returned Placemark?
>>
>> {
>> "name": "Jungfernstieg 20, Hamburg",
>> "Status": {
>> "code": 200,
>> "request": "geocode"
>> },
>> "Placemark": [ {
>> "id": "p1",
>> "address": "Jungfernstieg 20, 20354 Hamburg, Deutschland",
>> "AddressDetails": {"Country": {"CountryNameCode":
>> "DE","CountryName": "Deutschland","AdministrativeArea":
>> {"AdministrativeAreaName": "Hamburg","SubAdministrativeArea":
>> {"SubAdministrativeAreaName": "Hamburg","Locality":
>>
>> ....more.....
>>
>> Tobias Schwab schrieb:
>>
>>
>>> Hi,
>>>
>>> I just found out that geocoding (using the HTTP method) Addresses in
>>> Germany (e.g. "Jungfernstieg 20, Hamburg") the result has now "20
>>> Jungfernstieg" as ThoroughfareName (I would expect street name and
>>> house number in this order "Jungfernstieg 20"). This might be correct
>>> in e.g the UK but nobody would use something like that in Germany.
>>>
>>> Is there a parameter to the API call to get the correct ordering of
>>> street name and house number? Otherwise I would advise you to fix
>>> this.
>>>
>>> Thanx,
>>>
>>> Tobias Schwab
>>>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---