Jieyang
2008-04-16 01:27:00 UTC
Hello, when I use the mappoint.world datasource, and do a lat/long lookup via
FindServiceSoap.GetLocationInfo, using "MapPoint.World", no address object is
ever returned. Yet in the entity.displayname which is returned, the
country clearly appears at the end.
For example, with lat/long of 30.581 and 32.313, the call to mappoint
returns an entity object with "Al Ismā’īlīyah (governorate), Egypt" in the
entityname. It clearly found the country, yet it did not return an address
object with the country set to egypt.
I could potentially assume the country is the last word in the entity name
for every call, but I am not sure this is a good assumption. I as the
user of the api should also not have to do any parsing of the location.
The api should have done all that for me. The mappoint api should just
return an address object with the country set for calls to mappoint.world.
Why doesn't it do this and how do I work around it?
FindServiceSoap.GetLocationInfo, using "MapPoint.World", no address object is
ever returned. Yet in the entity.displayname which is returned, the
country clearly appears at the end.
For example, with lat/long of 30.581 and 32.313, the call to mappoint
returns an entity object with "Al Ismā’īlīyah (governorate), Egypt" in the
entityname. It clearly found the country, yet it did not return an address
object with the country set to egypt.
I could potentially assume the country is the last word in the entity name
for every call, but I am not sure this is a good assumption. I as the
user of the api should also not have to do any parsing of the location.
The api should have done all that for me. The mappoint api should just
return an address object with the country set for calls to mappoint.world.
Why doesn't it do this and how do I work around it?