If you populate the location field of a group via the API the geomap picture doesn't display the correct location. To make it correct the map you have to go to the group location box and press enter.
this is by design.
If you use the PRTG API to fill in the Location information, we're simply not allowed to automatically query geo information for any clear text locations you submit.
So, when adding location information via the PRTG API, please use geo locations together with the location name. For example, use:
/api/setobjectproperty.htm?id=<OBJECT ID HERE>&name=location&value=New York
/api/setobjectproperty.htm?id=<OBJECT ID HERE>&name=lonlat&value=74.007118,40.714550
New API Call to Set Geo Location
As of PRTG Network Monitor 126.96.36.19976 or later, there is a new API call to set the geo location of an object:
Provide the object ID together with the parameters for location and/or longitude and latitude.
If only the location parameter is given, the Core Server will excute the geo location lookup (this can last up to three minutes). Provide the name of the location, e.g., "New York". It will be shown in the Location settings, no matter of longitude/latitude.
If the longitude/latitude parameter is given, the marker in the map will be set to this position, no matter of the location parameter. Provide longitude and latitude separated by a comma, e.g., "-73.998672,40.714728".
Thank you for the update. Are you saying I need to use co-ordinates rather than postcodes?
Thanks for the info. I have populated all of my groups with lonlat and location data however all that appears to happen is they now show on the other side of Africa. Their location (related to each other) is correct, it's just not showing over the UK but in the middle of the Arabian Sea / Indian Ocean. If I query an object (/api/getobjectproperty.htm?id=4997&name=lonlat&username=[username]&passhash=[passhash]) and get the result: 188.8.131.5207 52.7890249,-2.1169968
oh, FYI I tried switching from MapQuest to Nokia and get the same result.
you have to switch your coordinates as the paramter name "lonlat" states the first part of the coordinate is the longitude (positive=east, negative=west), and the second part is the latitude (positive=north, negtive=south).
For your example you set the point like so:
Woohoo! Well spotted Stefan, thank you! :o)