Use POIs for reverse geocoding

The radius for POIs (Points of Interest) can now be increased for geocoding purposes. You can also show the distance and direction to a POI as a geocoding result.


POI geocoding sample

You can use a combination of multiple POI (Points Of Interest) categories for reverse geocoding in GpsGate Server. Different categories can be given a different “reach” so that the most appropriate category is used in each case.

This is useful for example when:

  • You want to combine known POIs with a geocoding service.
  • You want to display a vehicle location in relation to a POI.
  • You prefer to have POI references instead of addresses in you reports.

You can create multiple POI categories, with different priorities based on the vehicle distance from the POI. As an example you can use POIs from a local category when vehicles are close and switch to a regional category when vehicles are further away from any POIs in the local category.

  • Note: If you want to share one set of POIs and geofences for geocoding in multiple applications you can setup an AppGeocoder.

Gas station example

Below is an example using JET, a company with mainly unmanned gas stations all over Sweden. The aim is to track a fleet of service vehicles and when a JET station is close enough (5 km) it will be used as a reference for a vehicle location. At further distances from a JET station large cities in Sweden are used as the reference for vehicle locations.

Install PointsOfInterest plugin

The first step is to install the PointsOfInterest plugin.

  1. Login to the Site Administration application
  2. Click on the Plugins tab
  3. Install “PointsOfInterest” from the update.gpsgate.com repository
  4. Click on the Applications tab and select your application
  5. Select POI or POI + Google as the geocoder for your application (in the Geocoding section)
  6. Enable the feature PointsOfInterest (in the Privileges and Roles section)
  7. Save your application settings
Activate POI geocoding

Activate POI geocoding and Points of Interest in your application.

  1. Login to the Site Administration application
  2. Click on the Applications tab and select your application
  3. Select “POI” or “POI + Google” as the geocoder for your application (in the Geocoding section)
  4. Enable the feature PointsOfInterest (in the Privileges and Roles section)
  5. Save your application settings
Import POI file

The third step is to import a list of all gas stations as POIs into the “JET Stations” category.

  1. Login to your VehicleTracker application as an Administrator
  2. Open the POI panel from Windows / Points of Interest and click on the Import button

    POI import
  3. Select your POI file, enter the category name “JET Stations” and click Import

Note: You can view a video about importing POIs here

Pick POI locations from the map


The third step is to pick known locations from the map for the cases when the vehicles are more than 5 km from a JET station (Naturally you could also import another POI list with cities).

  1. Pan and zoom your map to a city. Point your mouse on a city center, “right-click” and select “Add POI here”
  2. Give it a name and save it in a new category, call it “Cities”.
  3. Repeat the steps above for more cities, place the POIs in category “Cities”
Configure POI geocoding

The final step is to configure how the POI categories should be used for geocoding. Again, if a JET station is close enough (5 km) it will be used as a reference for a vehicles location. At further distances from a JET station I will use large cities in Sweden as the reference for vehicle locations.

The “JET Stations” should have a reach of 5 km and only be visible on the map on higher zoom levels:

  1. Open the POI panel from Windows / Points of Interest and click on the Settings / Manage categories
  2. Select “JET Stations”. Set Min zoom to “3 - Region” and Max zoom to “7 - Street” and click Next

    Edit POI category
  3. Set Tolerance to “Within 5000 m” and check the Show distance checkbox

    Edit POI geocoding
  4. Save your settings

Do the same thing for the “Cities” category. The “Cities” should have an unlimited reach and only be visible on the map on lower zoom levels:

  1. Select “Cities”. Set Min zoom to “0 - No limit” and Max zoom to “3 - Region” and click Next
  2. Set Tolerance to “No limit” and check the Show distance checkbox
  3. Save your settings
Result

Now “Address” fields in your application will show the closest JET Station if a vehicle is within 5 km or the closest city in your “Cities” category if the distance to a JET station is over 5 km.
JET Stations POI
In the image above the closest “JET Stations” POI is used in the Address field as the distance to it is within 5 km.

Cities POI
In the image above the closest “Cities” POI is used in the Address field as no “JET Stations” POI is within 5 km.

These settings also apply to reports and all other places where an address is used.


  Discuss this blog post on the forum please



Download free GpsGate Server

Install it on your own server. The installation is free for 5 users.

Download Now