Hello I want to generate instantly an image showing a route between two points that I've chosen (this image will then be inserted in a video).

On my computer, I've been using Mapbox JS API to display a set of directions, in particular their Directions API which is neat! But now I need a route from a user geolocation retrieved on the fly. With Mapbox URL API, this URL will show the two points, but no itinerary.

https://api.mapbox.com/v4/mapbox.dark/pin-l-star+482(%s,%s),pin-l-hairdresser+482(%s,%s)/%s,%s,17/1280x800.png?access_token=%s

The Direction API via URL sends a JSON, but I need the itinerary to be shown on the map.

https://api.mapbox.com/v4/directions/mapbox.walking/2.345732,48.893782;2.353325,48.878329.json?access_token=..." I've been looking to OpenStreetMap, Mapquest, ... Maperitive is interesting: it's a Desktop app with Python API; you can import a GPX itinerary and then saves the image.

I wonder if anyone has another option to say instantly "export an image with itinerary from Point A to Point B". Can't use Google Maps as they don't allow commercial use of the maps from their API.

Thanks in advance!

asked 25 Feb '16, 12:28

Charlie18's gravatar image

Charlie18
11113
accept rate: 0%

closed 26 Feb '16, 16:44

aseerel4c26's gravatar image

aseerel4c26 ♦
32.2k16239552

2
(25 Feb '16, 12:39) scai ♦

@scai: thanks for your answer!

(25 Feb '16, 13:46) Charlie18

@Charlie18: do you still have questions or is everything fine now?

(25 Feb '16, 19:58) aseerel4c26 ♦
1

@aseerel4c26 I'd say it's ok for now. Thanks!

(26 Feb '16, 10:24) Charlie18

The question has been closed for the following reason "See the linked "related question" above - answers there." by aseerel4c26 26 Feb '16, 16:44

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×248
×42
×37
×24

question asked: 25 Feb '16, 12:28

question was seen: 1,197 times

last updated: 26 Feb '16, 16:44

powered by OSQA