Skip to main content

Representative Location

This window shows on a map where a distribution unit was on a day you choose, as recorded by the representative's device. It can also add the unit's customers and its visit plan to the map. A button opens Location Service Settings, where you set the code of the service that provides the map.

Opening the window​

From the ribbon: Distribution > Reports > Distribution Reports > Representative Location.

The command needs the Representative Location permission in Users Management > Operations, and the distribution feature in your licence. The map is drawn from a page the window loads from the Internet, so you need an Internet connection.

Fields​

FieldDescriptionRequiredValues and rules
RepresentativeThe distribution unit whose location you want.YesA distribution unit lookup box, not a representative. Its menu is in Small menus and lookup boxes in Distribution.
DateThe day you want the unit's locations for.YesA date field, such as 31-12-2026. All the locations of that day are shown, from its start to its end. See Date fields.
Last UpdateShows the date and time of the first location recorded on the chosen day.NoDisplay only. Before the first refresh it shows 0000-00-00 00-00-00.
Map TypeThe look of the map.NoRoad Map (the default), Satellite, Hybrid and Terrain.
Travel ModeThe way of travelling.NoDriving (the default), Walking, Bicycling and Transit. The program does not use it when it draws the map.
Show CustomersAdds a marker to the map for each customer of the unit.NoNot ticked by default.
Show Distribution PlanAdds the unit's visit plan for the chosen day to the map.NoNot ticked by default.
ButtonWhat it does
RefreshReads the locations and draws the map with the current choices.
Setup..Opens Location Service Settings. It works for the system administrator only, and is disabled for anyone else.
CloseCloses the window.

The map area is empty until you click Refresh. The program draws the map only when you click Refresh, so it does not change when you edit a field or an option before clicking.

What appears on the map​

Refresh puts these elements on the map:

ElementWhat it stands for
A path with a moving arrowThe unit's recorded locations on the chosen day, in time order. An arrow moves along the line. The map is centred on the first location at a fixed zoom. The map skips a location whose latitude and longitude are both zero.
A marker on each locationClick it to open a small note with "From : " and the time of the location, and "To : " and a time.
Customer markersThey appear with Show Customers, for each customer under the unit's customers account that has coordinates. Click one to see the customer's name, phone and type of work.
Plan line and markersThey appear with Show Distribution Plan: a semi-transparent blue line joins the plan customers of the chosen day, and each marker shows the best visit time.

Customers whose saved latitude or longitude is zero or less do not appear. The customers account is the Customers of field on the Customer Export Options page of the unit card.

What Refresh does​

  1. If you have not chosen a unit, nothing happens.
  2. The program reads the unit's locations on the chosen date. If it finds none for that day, nothing happens either: no message appears and the map stays as it was.
  3. If Show Customers is ticked, it reads the unit's customers that have coordinates.
  4. If Show Distribution Plan is ticked, it reads the plan of the day. If the unit has no plan on that day, the map is drawn without it.
  5. It draws the map with the selected Map Type.

Location Service Settings​

A window that opens with the Setup.. button, titled Location Service Settings. It has one field and two buttons.

FieldDescriptionRequiredValues and rules
Activation Code of Location ServiceThe code you give to the online map service. It is the key you get from the map provider.NoThe field shows the saved code. If you leave it empty, the program saves the default code built into it.
ButtonWhat it does
OKSaves the code and closes the window.
CancelCloses the window without saving.

The program saves the code in the company file, for all its users. The map reads the saved code every time you click Refresh, so a change applies to the next map you draw.

Messages​

The two windows show no messages of their own. In these cases nothing changes:

CaseWhat happens
You clicked Refresh without choosing a unitNothing.
The unit has no recorded locations on the dayNothing, and the map stays as it was.
The Setup.. button is disabledYou are not the system administrator.

This page applies to alameen ERP 10, version 10.1.79.764.