NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am doing a supply chain optimization algorithm with Wolfram Mathematica. In this algorithm I am communicating with googlemaps API and providing it longitude and altitude coordinates, then I return the shortest distance between them for "truck/car" type vehicles. However googlemaps API has a daily limit 2500 requests. I want to use OSM API offline on my local computer. I found that I can do this by downloading the Europe OSM file and to use JOSM - JAVA openstreetmap editor to do this.

However, I did not find any information how to make a request to the editor from another software. Is it possible to do this, if yes how? is there any script example or plugin?

asked 29 Nov '15, 07:12

ValentasG's gravatar image

ValentasG
11223
accept rate: 0%


Sounds like you are looking for an offline router. JOSM is an editor and although it has some routing plugins it is not really suitable for your job.

Instead take a look at the various routing solutions for OSM. You should probably try a local OSRM or GraphHopper installation. This has also already been answered in your previous question.

permanent link

answered 29 Nov '15, 09:03

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

edited 29 Nov '15, 09:05

Thank you for your response. I check GraphHooper, however I did not understand precisely the software usage. Is it possible to use it offline without an API key? The API key can provide only 500 requests as I understood for a free user? Also, how the GraphHoper should communicate with Wolfram Mathematica? Can I create a HTTP API and connect to it with wolfram (similar like I did with googlemaps API)? Or I need a script that allows Wolfram to communicate with native Java applications?

I think these questions are important, regarding witch software I decide to use OSRM or GraphHopper.

(29 Nov '15, 10:56) ValentasG

The crossposting / question duplication here suggests that there's a bit of communications failure here (not surprising, because if someone's coming from an API-centric "you must use our services and all your data are belong to us" world then how would they know that another world exists?).

Perhaps it would be helpful to take a bit of a step back, and ask a few more general questions on the #osm IRC channel? That way you can get more of a feeling for what OSM "is" rather than making assumptions based only on other geo providers...

(29 Nov '15, 12:07) SomeoneElse ♦

@ValentasG GraphHopper is open source (well, except for some advanced services like its Geocoder) so there is no need for an API key if you run your own instance. Your other questions seem too broad to be answered on help.openstreetmap.org.

(30 Nov '15, 08:41) scai ♦

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:

×31
×14
×2
×1

question asked: 29 Nov '15, 07:12

question was seen: 3,611 times

last updated: 30 Nov '15, 08:41

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum