Alternative to Google maps API

Use this forum to find or post TSRE tips & guides.
Karthik27
Posts: 1
Joined: 28 Jul 2022, 04:58
Hello can any one can help me in creating Mapbox API key
I am From India And I am covering Southern Part of India.
Somebody please guide with entire Step.
Thank you.

a408814361
Posts: 4
Joined: 17 Nov 2020, 06:06
Landlord,Now the key cannot be used.Is there any other way to import a map? thankyou。

Septf
Posts: 24
Joined: 16 Jan 2019, 14:04
Location: France - Charente
Contact:
The problem of importing images from the Mapbox API has been solved by Kapitaen13 from the TSSF.eu forum

code to add in the settings.txt file

Code: Select all

 imageMapsUrl = https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/{lon},{lat},16/{res}x{res}?access_token=Your key API Mapbox
thanks to him for finding this trick and sharing it

Kapitaen13
Posts: 46
Joined: 16 Jan 2019, 15:21
Error message
Legacy Static Image requests are no longer supported. To continue making Static Image requests, please use the modern Static Images API. See https://docs.mapbox.com/api/maps/static-images/ for more information.
New API

Code: Select all

https://api.mapbox.com/styles/v1/{username}/{style_id}/static/{overlay}/{lon},{lat},{zoom},{bearing},{pitch}|{bbox}|{auto}/{width}x{height}{@2x}
For TSRE

Code: Select all

imageMapsUrl = https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/{lon},{lat},{zoom}/{res}x{res}?access_token=+YOUR_MAPBOX_ACCESS_TOKEN
The zoom has changed and must be entered manually.
Standard Terrain
Raster Image Z18 =17
Raster Image Z17 =16
Distance Terrain
Raster Image Z18 =13
Raster Image Z17 =12
Example: Standard Terrain Raster Image Z18 =17

Code: Select all

imageMapsUrl = https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/{lon},{lat},17/{res}x{res}?access_token=
+YOUR_MAPBOX_ACCESS_TOKEN

CosmigonoN
Posts: 2
Joined: 07 Apr 2023, 03:27
Kapitaen13 wrote: 22 Apr 2023, 13:54 Error message
Legacy Static Image requests are no longer supported. To continue making Static Image requests, please use the modern Static Images API. See https://docs.mapbox.com/api/maps/static-images/ for more information.
New API

Code: Select all

https://api.mapbox.com/styles/v1/{username}/{style_id}/static/{overlay}/{lon},{lat},{zoom},{bearing},{pitch}|{bbox}|{auto}/{width}x{height}{@2x}
For TSRE

Code: Select all

imageMapsUrl = https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/{lon},{lat},{zoom}/{res}x{res}?access_token=+YOUR_MAPBOX_ACCESS_TOKEN
The zoom has changed and must be entered manually.
Standard Terrain
Raster Image Z18 =17
Raster Image Z17 =16
Distance Terrain
Raster Image Z18 =13
Raster Image Z17 =12
Example: Standard Terrain Raster Image Z18 =17

Code: Select all

imageMapsUrl = https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/{lon},{lat},17/{res}x{res}?access_token=
+YOUR_MAPBOX_ACCESS_TOKEN
Thank you very much for the information!!!
I have tried it, and it works!!

Greetings!

xavivilla
Posts: 28
Joined: 16 Jan 2019, 19:14
Thanks for the explanation, it works fine.
I apologize for my English of translator

Manuel18
Posts: 5
Joined: 12 Feb 2019, 01:15
Kapitaen13 wrote: 22 Apr 2023, 13:54 Error message
Legacy Static Image requests are no longer supported. To continue making Static Image requests, please use the modern Static Images API. See https://docs.mapbox.com/api/maps/static-images/ for more information.
New API

Code: Select all

https://api.mapbox.com/styles/v1/{username}/{style_id}/static/{overlay}/{lon},{lat},{zoom},{bearing},{pitch}|{bbox}|{auto}/{width}x{height}{@2x}
For TSRE

Code: Select all

imageMapsUrl = https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/{lon},{lat},{zoom}/{res}x{res}?access_token=+YOUR_MAPBOX_ACCESS_TOKEN
The zoom has changed and must be entered manually.
Standard Terrain
Raster Image Z18 =17
Raster Image Z17 =16
Distance Terrain
Raster Image Z18 =13
Raster Image Z17 =12
Example: Standard Terrain Raster Image Z18 =17

Code: Select all

imageMapsUrl = https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/{lon},{lat},17/{res}x{res}?access_token=
+YOUR_MAPBOX_ACCESS_TOKEN
Sorry to bump a old thread. This is correct, and thanks for the feedback. (first post fixed)

I wanted to update my raster satellite files and find out there is a Zoom level error. This is not Goku fault but there should be a "comfortable" solution.

Post Reply