Page 2 of 2

Re: Alternative to Google maps API

Posted: 28 Jul 2022, 04:59
by Karthik27
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.

Re: Alternative to Google maps API

Posted: 22 Apr 2023, 11:49
by a408814361
Landlord,Now the key cannot be used.Is there any other way to import a map? thankyou。

Re: Alternative to Google maps API

Posted: 22 Apr 2023, 13:52
by Septf
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

Re: Alternative to Google maps API

Posted: 22 Apr 2023, 13:54
by Kapitaen13
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

Re: Alternative to Google maps API

Posted: 30 Apr 2023, 20:14
by CosmigonoN
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!

Re: Alternative to Google maps API

Posted: 01 May 2023, 18:36
by xavivilla
Thanks for the explanation, it works fine.

Re: Alternative to Google maps API

Posted: 11 Feb 2024, 02:52
by Manuel18
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.