Guide to Template:Map

This template is used to create the specific service station maps, such as at Map:Strensham, and should be used as follows, and like all templates most of the variables aren't necessary:

{{Map
|overall-lat - if more than one marker is being displayed on the map, you'll need to specify the centre of the map with this
|overall-lon - as above, but for the longitude
|lat1 - the latitude of the services (where the marker should be)
|lon1 - as above, but for the longitude
|dir1 - if the services are direction-specific, put "north"/"south"/"west"/"east" here. Each one is short for northbound and so on, not the services location relative to the road
|lat2 - if there are two sides to the services, but the latitude of the second marker here
|lon2 - as above, but for the longitude
|dir2 - the side of the services this marker applies to
|directions - simple directions from the motorway to the services
}}

The latitude and longitude is widely available from online services. Note that we need the location to be previse, because this data may be used by sat navs. The icon should point to the slip road leading in to the service area, at the last possible point before the user needs to pick which parking area or facility they want (in other words, at any point before a sat nav might pick up another road on its map that it could send you down).

Note that the map guesses what colour icon should be used by looking for the appropriate Template:Services, so the page name should be the same. This creates a bug, where truckstops will be shown in their road colour, rather than their more common black.

This template adds dedicated map pages for each service area.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The name of the service area, if it's not obvious from the page name.

Default
{{PAGENAME}}
Example
Keele
Stringoptional
Latitudelat1

The latitude of the service area entrance (where it leaves the road). If there are two sides, use the north or westbound side.

Example
52.992885
Numberrequired
Longitudelon1

The longitude of the service area entrance (where it leaves the road). If there are two sides, use the north or westbound side. Remember longitudes are often negative!

Example
-2.287377
Numberrequired
Directiondir1

If there are two sides to the service area, explain which one the first one was.

Example
north or west
Stringoptional
Latitude 2lat2

If there is a second side to the services, give the latitude to its entrance (where it leaves the road) here.

Example
52.992885
Numberoptional
Longitude 2lon2

If there is a second side to the services, give the longitude to its entrance (where it leaves the road) here. Remember longitudes are often negative!

Example
-2.287377
Numberoptional
Direction 2dir2

If the service area has two sides, explain what the second side was.

Example
south or east
Stringoptional
Overall Latitudeoverview-lat

If there are two sides to the service area, define a central point that the map can focus on.

Default
will take latitude 1
Example
52.992885
Numberoptional
Overall Longitudeoverview-lon

If there are two sides to the service area, define a central point for the map to focus on. Remember longitudes are often negative!

Default
Will take longitude 1
Example
-2.287377
Numberoptional
Directionsdirections

Give directions of how to get to the service area from each approach (excluding minor roads).

Contentrequired
Typetype

If set to closed or planned, it will change the structure of the page. Embed disables many features.

Example
closed
Stringoptional
Classclass

For embedded pages, set the road type.

Example
motorway
Stringoptional
Grid Referencegridref

For embedded pages - the OS grid reference.

Example
SJ962050
Stringsuggested
Countrycountry

If this page is about a service area in Ireland, it needs to be stated, as different maps will be provided.

Default
UK
Example
Ireland
Stringoptional