How can I detect if GreatMaps Reverse Geocoding is Working or not

Aug 17, 2010 at 7:27 PM


When I want to do reverse geocode, the response for GetPlacemarkFromGeocoder is null even when: there is no valid address for that position OR when the server is unreachable (maybe a firewall, no internet connection, etc.). But how can I detect if I can connect or not to the server (and then I will now if the "null" that returns is from a CONNECTION ERROR and not because of the invalid position)?

When I have only a few positions and there is a problem with connection it´s ok, but when I have more positions to convert, then my app will freeze until it gets a timeot for EVERY position.

I can check for the "null" and skip the verification of the other positions, but what if the "null" is from a invalid position instead of a timeout?

Thank you!

P.S.: Congratulations for your excelent work!!!

Rudolf Gutlich

Aug 18, 2010 at 5:38 AM


good point!, usual geocoding has response status, maybe i can add this there too, let's try

thx for the tip

Aug 24, 2010 at 4:13 PM

Hi, there is any news on this topic?

Besides that, I want to know if there is a way on using GetPlacemarkFromGeocoder and return an object with all structure filled i.e. Address, City etc.

I have to parse the string that returns and it isn´t always easy to do.

Sometimes there is no ZIP Code, sometimes there is no Country. It will help if it includes the information also splitted in many properties, like in the XML in this link:

Thank you,

Rudolf Gutlich

Aug 24, 2010 at 4:34 PM


Sep 24, 2010 at 8:26 PM


There is any progress in detecting if the null indicates a invalid position a problem with the connection?


Sep 24, 2010 at 8:46 PM

check the source, i changed function to use xml, so now it contains all data and status, but code is incomplete as far as i remember ;}

Sep 24, 2010 at 8:49 PM

Ok, I will check it!

If I have any improvements, I´ll let you know!