Creating a Custom API service
To create a custom API service:
Click the Integrations, API Services tab.
Click CREATE SERVICE.
Click ADD AREA. You can add an area in one of two ways:
Drawing your area of interest on the map.
Use the search box to search for your location, then draw the area you wish to add.
Choose whether to add start and end dates. If you specify the dates, you will limit the response to the dates within this range.
- Uploading a GeoJSON file of your area of interest.
- Click the upload a GeoJSON file link. The Open dialog is displayed.
Select the file to upload, and click Open. Alternatively, you can directly drag and drop the file into MyAccount.
- In the Area name field, specify a meaningful name for the area.
- Click CONTINUE. You can add more areas to the service if you want to.
- You can now rename the service. Click the Ellipsis button (button with the three dots located in the top right corner).
- From the menu, select Rename.
- Type a name for the service.
- Click the green tick to save your changes.
- Click Finish to close the window when you are done.
- To delete the service, click Delete on the Ellipsis menu.
Working with GeoJSON files
Here are a few examples of valid GeoJSON files opened in a WMS client. Note that the expected co-ordinate system is WGS84 lat/lon. For more information, see https://gisgeography.com/wgs84-world-geodetic-system/.
You may encounter errors if you upload a GeoJSON file with:
- Multiple non-overlapping polygons
- Multiple invalid overlapping polygons
- Unsupported non-polygon features
- No content in the GeoJSON file or an invalid file extension.
https://api.nearmap.com/wms/v1/places/<PLACES_ID>/apikey/<APIKEY>
FAQs
-
What are the best practices for defining areas? —
Use simple boundaries around your areas of interest. The imagery is not requested until you interact with the application, so there is little difference in what imagery is returned when the custom service is used.
-
Should I use Simple or Custom WMS? —
The simple WMS should be used if you want the only latest imagery for your area (Australia/New Zealand/USA/Canada). You will not be able to perform geofencing or navigate time. Custom WMS will allow you to perform geofencing and to set up specified regions as the only imagery you can view. For those regions, you will be able to navigate the time and set boundaries for the dates.
-
-
-
If we create many areas, does it have a performance impact? —
The performance impact is not so much dependent on the size of the area, but on the number of surveys you bring back. There is a limit on how big an individual area can be, currently set at about 5000 km2, and you can specify up to ten areas in the same service. If you bring in ten metropolitan areas around Australia, you could be loading thousands of surveys. That would slow down your initial loading into your GIS application.
-
Are there limits to the Custom WMS services? —
- Maximum number of WMS places - 50
- Maximum number of areas per place - 10
- Maximum area size - 15,000 km²
-
-
-
Is WMS 2.0 more accurate than what I am currently using? —
Australia - We have adjusted the datum of the imagery that is returned by default when you don’t specify a projection, i.e. rely on application defaults. WMS 2.0 will automatically adjust the imagery to GDA2020 coordinate system for Australia and NZGD2000 for New Zealand. This will reduce positional errors and projection mismatches ensuring your imagery lines up. WMS 2.0 will continue to support the GDA94 MGA zone projections in Australia.
-
-
How do I use GDA2020 projections? —
For Simple WMS all AU MGA zones are available in both GDA94 and GDA2020. For Custom WMS only the zones that intersect with the area of interest will be available as an option to request imagery in.
-
How do I use State Plane projections? —
Only available in Custom WMS. Only the state plane projections that intersect with the area of interest will be available as an option to request imagery in.
-
-
-
Does interacting with the imagery in the area definition window count towards my usage? —
Yes. When you define an area, a small amount of imagery is loaded to provide context for where we have coverage. We envisage that there will be very little usage coming from this tool because:
- The map is very small, i.e. not full screen
- It is used infrequently to create services