Page 1 of 2

Alternative to Google maps API

Posted: 12 Feb 2019, 01:27
by Manuel18
Hello everybody.

Since Google maps API key got an expensive cost than i can't afford. I figure out a solution to this.

Mapbox
Mapbox provide not just a vector street map also an satellital images.
www.Mapbox.com

1.- Register and obtain your API KEY or Access Token

2.- Once obtained your API KEY, open settings.txt and alter (imageMapsURL) line with the following code:

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
Where zoom parameter need to be added manually and has the following values

Standard Terrain
Raster Image Z18 equal to : 17
Raster Image Z17 equal to : 16

Distance Terrain
Raster Image Z18 equal to : 13
Raster Image Z17 equal to : 12

EXAMPLE using Standard Terrain with a Raster image Z17

Code: Select all

imageMapsUrl = https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/{lon},{lat},16/{res}x{res}?access_token=+YOUR_MAPBOX_ACCESS_TOKEN
(special thanks to CosmigonoN)

Regards.
Manuel

Re: Alternative to Google maps API

Posted: 12 Feb 2019, 16:31
by xavivilla
Thank you very much for the Google alternative

To make it easier to see the code to enter in settings.txt

Code: Select all

imageMapsUrl = http://api.mapbox.com/v4/mapbox.satellite/{lon},{lat},{zoom}/{res}x{res}.png?access_token=INSERT_YOUR_API_KEY_HERE

Re: Alternative to Google maps API

Posted: 12 Feb 2019, 17:04
by hannes44
Thank you, that helps!

Re: Alternative to Google maps API

Posted: 15 Feb 2019, 12:44
by Goku
Thanks. That is an awesome help for route builders.

Re: Alternative to Google maps API

Posted: 15 Feb 2019, 20:31
by kiwikid
That's brilliant, thanks a lot.
Mike

Re: Alternative to Google maps API

Posted: 25 Feb 2019, 17:44
by OldVern
Nice find, Manuel.

Re: Alternative to Google maps API

Posted: 06 Aug 2020, 01:39
by VAPOR3D
Hey,

I can't get this to work. What is the format of the data to be entered between the brackets of {lon},{lat},{zoom}/{res}x{res}?

Thanks.

Re: Alternative to Google maps API

Posted: 06 Aug 2020, 02:04
by VAPOR3D
Well, I've learned how it works, thanks anyway!

Re: Alternative to Google maps API

Posted: 17 Nov 2020, 06:14
by a408814361
Can you tall me how to work ? thankyou.

Re: Alternative to Google maps API

Posted: 17 Nov 2020, 15:17
by Switch Tender
The first post in this thread is pretty self explanatory.
What part of it are you having problems with?