This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to implement OpenStreetMap on the website / sharepoint environment

0

Hello All

It is first time I have come across the OpenStreetMap of which I am really amazed :)

Congratulation to all the developers and participants...

My question is, how would I implement the MAP to show on my website where user can type in the From location and To location and in return the map shows the route including the costing or miles.

I have come across a taxi company online (****.book.citytaxis.com/new-booking) using this map and their map shows the estimated cost. I assume the cost is calculated based on £x.xx per mile.

Anyway, I am slightly confused what needs to be done :) Ideally, I would wish this working on a SharePoint environment.

I hope it is a matter of downloading the .js files and linking it up?

Please advise in really simple terms for me to follow easily.

Thanks

asked 08 Aug '18, 12:43

Bimi82uk's gravatar image

Bimi82uk
11113
accept rate: 0%

edited 08 Aug '18, 12:45

1

Perhaps you should start reading https://wiki.openstreetmap.org/wiki/Develop which describes how you can use OpenStreetMap data.

(09 Aug '18, 04:17) escada

Indeed, I did have a look at the WiKi Page and reason why I asked here is in hope SOMEBODY would take his/her time to explain simple term in a way or step by step process. And not like "here read the link" which is not very straight forward.

(09 Aug '18, 08:27) Bimi82uk
1

@bimi82uk I don't think that's likely to happen (especially with regards to how things fit into a Sharepoint environment).

It sounds like you have a number of requirements:

  • Some sort of background map
  • A UI to request to / from places
  • A back-end routing API
  • A way of displaying routes on the background map
  • How to do all this beneath Sharepoint

What I'd suggest is that you look at each of these in turn - break what you want to do into small manageable steps and look at each one in turn. For example, @escada's link already contains links to "Showing a Map" and "Routing/navigation", which address two of your requirements.

(09 Aug '18, 08:45) SomeoneElse ♦

@SomeoneElse

Indeed, it is far from easy to follow the steps required. I assumed it would be a case of using the leaflet js files etc. but the "showing a map" just provides loads of framework of which I have no clue about ... nor implementing it.

(09 Aug '18, 09:06) Bimi82uk

Furthermore,

I hoped that I could use a simple test on a blank simple html page. I can test it via html first to get the look and feel ... but I fail to understand what is required step by step.

I am not a coder nor a developer and this may explain why it is so difficult to follow through :/

(09 Aug '18, 09:13) Bimi82uk
2

I am not a coder nor a developer and this may explain why it is so difficult to follow through :/

Indeed :)

However, Leaflet is an excellent place to start from - there are lots of examples there.

(09 Aug '18, 09:35) SomeoneElse ♦
showing 5 of 6 show 1 more comments

Source code available on GitHub .