Skip to main content
All CollectionsBusiness SetupOperationsService areas
Creating Service areas from a city or postal code
Creating Service areas from a city or postal code
Anna avatar
Written by Anna
Updated over a week ago

Overview

This article explains how to create a GeoJSON file for a Service area by using city or postal code borders.

Find the right geographical area

  • To find a geographical area that you’d like to use as a Service area on MotionTools, visit the Nominatim service. On Nominatim, you can view the borders of a city or a postal code. Here's an example of the borders of Berlin:

    example_4.png
  • Click on the Details button, scroll down to the OSM row, and copy the relation ID number.

    example_3.png

Download the area as GeoJSON

  • Copy the json content.

    example_1.png

Format the GeoJSON file

  • The GeoJSON is in the MultiPolygon format which is not accepted by MotionTools.

  • To change this download this example geojson file.

  • Use a simple text editor to paste in the json content and save.

  • Click Open and choose your GeoJSON file.

  • If you want to merge multiple zip codes into one Service Area, do this step for all of your zip codes.

  • Export the final GeoJSON file which will give you the right format.

    Geojson.io.png

Import the Service Area

  • Open the MotionTools Dashboard and attach the GeoJSON file to the Service area (Settings → Service Areas). For more information, refer to Manage Service Areas.

How to reduce the file size

If your GeoJSON file size exceeds the 20kb limit, follow these steps:

Remove the inner zones if they exist

  • Import the geoJSON file, open the Vector menu, select Geoprocessing Tools, click Dissolve, and then click Run.

    example_6.png
  • The inner border should now be gone. Right-click on the layer on the bottom left and select Export → Save Features As.

    example_7.png
  • Next to the File name click on the “…” button and choose a name and directory. Click Save.

    example_8.png

Simplify the GeoJSON file

Did this answer your question?