Skip to main content

Module maps

Module maps 

Source

Structs§

Airport
AirportOptions
The options argument of get_airports.
Attribution
What a map must show while its tiles are on screen.
AutocompleteOptions
The options argument of autocomplete.
Bounds
Coordinates
Forecast
Temperatures in °C and wind in km/h for metric, °F and mph for imperial.
ForecastDay
ForecastHour
Money
Place
PlaceSearchOptions
The options argument of search_places.
Route
RouteOptions
The options argument of get_routes.
Step
One instruction along a route. Transit steps also carry the line, stops and times.
Suggestion
One autocomplete match. place resolves through geocode with a place waypoint.
TilePass
Prepaid map tiles. The pass id is all a tile request needs.
TilePassOptions
The options argument of create_tile_pass.
Waypoint
A place to start or end at: coordinates, an address, or a place id. Set one.
WeatherOptions
The options argument of get_weather.

Enums§

Condition
MapTheme
TravelMode
Units

Functions§

autocomplete
create_tile_pass
Buy a pass for tiles map tiles (default 150). Tiles are billed up front, when the pass is bought.
geocode
Find places for an address, coordinates (reverse lookup) or a place id.
get_airports
The nearest airports with scheduled flights, closest first. Free.
get_attribution
The attribution for what a map shows right now. Free; call it as the view moves.
get_routes
Drive, walk and transit routes between two waypoints, one per mode that has one. Flights come from Travel.
get_tile
One map tile image, read as it streams in.
get_tile_url
A tile URL template with {z}, {x} and {y} left in, the way map libraries take them.
get_weather
Daily (up to 10) and hourly (up to 240) forecasts for a point.
search_places