Troubleshooting the Coverage API

Not Authorized to Access Area

Error

{ "error":"You are not authorized to access this area" }

Resolution

Check whether the coordinates that you used are LONG,LAT points, and not LAT,LONG points. The order is crucial, otherwise you will be requesting surveys for an area that is outside your coverage area, and this error will be returned.

For example:

https://api.nearmap.com/coverage/v2/point/-74.043970,40.688640?apikey={YOUR_API_KEY}
https://api.nearmap.com/coverage/v2/point/151.214850,-33.858060?apikey={YOUR_API_KEY}

This error is also returned when you request coverage for an area you are not authorized to access, for example when your API key can be used only for Australian imagery, and you request coverage for an area in the United States.

It is also possible that you requested coverage for an area that Nearmap doesn't cover.

Invalid Polygon

Error

{ "error": "geometry was not a valid sequence of x,y coordinates", "code": "INVALID_POLYGON" }

Resolution

Check whether you have an extra comma or space in your URL request.

NOTE: This error is also returned when the polygon is given in the wrong format.

API Key Not Found

Error

{ "error":"API key not found" }

Resolution

Check whether you are missing any part of the API key, or if you have an extra space in the API key.

This error is also returned when the API key is invalid. Check if the API Key that you are using is "Stale". You can confirm this and renew the API by following the instructions listed here.