Maps examples/Geocode

The  function or tag allows to transform the position of locations into coordinates, i.e. to determine coordinates.

Specify a mapping service
Geocoding "New York" with several mapping services:

Default mapping service ("nominatim") :

Using  and specifying it as second parameter:

Using :

Using  and specifying it as named parameter:

Specify a target format
Formatting to non-directional floats and to directional DMS.

Results into:

Results into:

Passing along coordinates

Results into:

Results into: