You are not logged in.

#1 2021-05-07 15:57:15

FILMLAND MV
Member
Registered: 2021-05-07
Posts: 3

Include OSM as a map section on my website with own MySQL-Data

Hello community,

I would like to include OSM as a map section on my website and only display POIs or addresses that come from my own database - is that possible?
I use MySQL and PHP, JSON, XML if necessary. Is there an API for this and / or a workaround?
I've already got it done with GoogleMaps, but of course they want money for it if the result is to be displayed without watermarks and dark gray layers above ... sad

I would be very grateful for helpful tips / links.

Best regards and have a nice weekend!

Offline

#2 2021-05-07 18:42:26

stephan75
Member
Registered: 2008-05-28
Posts: 2,888

Re: Include OSM as a map section on my website with own MySQL-Data

Please tell us whether https://wiki.openstreetmap.org/wiki/UMap fits to your needs.

If not: why not?

Offline

#3 2021-05-07 20:50:57

Sandal man
Member
From: Benissa
Registered: 2016-09-23
Posts: 249

Re: Include OSM as a map section on my website with own MySQL-Data


Passionate hiker on the Costa Blanca, Spain.

Offline

#4 2021-05-07 20:55:21

FILMLAND MV
Member
Registered: 2021-05-07
Posts: 3

Re: Include OSM as a map section on my website with own MySQL-Data

@stephan75:  That seems to be exactly what I'm looking for ... let's see how far I can get with geoJSON.
Thank you very much for the hint.

Offline

#5 2021-05-07 22:16:48

Bomenvrouw
Member
Registered: 2021-05-07
Posts: 3

Re: Include OSM as a map section on my website with own MySQL-Data

thank you, i had a similar question.
but so far, i only managed a straight line between points. Oops.
I'd like to show the route i am intending to walk, how do i do that?
sorry if that is a beginnersquestion...
i am trying Umap, the other one with javascript looks a bit more difficult to learn.

txs

Offline

#6 2021-05-08 09:42:25

Sandal man
Member
From: Benissa
Registered: 2016-09-23
Posts: 249

Re: Include OSM as a map section on my website with own MySQL-Data

@Bomenvrouw, maybe Brouter is more suitable for you.
https://brouter.de/brouter-web


Passionate hiker on the Costa Blanca, Spain.

Offline

#7 2021-05-12 13:50:13

tagtheworld
Banned
Registered: 2012-04-25
Posts: 236

Re: Include OSM as a map section on my website with own MySQL-Data

hello dear Bomenvrouw, FILMLAND MV, stephan75:)

good day.


I would like to include OSM as a map section on my website and only display POIs or addresses that come from my own database - is that possible?
I use MySQL and PHP, JSON, XML if necessary. Is there an API for this and / or a workaround?
I've already got it done with GoogleMaps, but of course they want money for it if the result is to be displayed without watermarks and dark gray layers above ... sad
I would be very grateful for helpful tips / links.


thank you for raising this question!



thanks for Stephan75 and Sandal Man for the hints:

https://wiki.openstreetmap.org/wiki/UMap

Or https://leafletjs.com/
Or http://phpmygpx.tuxfamily.org/

as Bomenvrouw i also had some similar questions - i will have a closer look at the linked sites.


thank you
TagTheWorld:)


https://wiki.openstreetmap.org/wiki/User:Tagtheworld - interested in all things concerning osm especially those related to the languages Perl, PHP, Python and the databases MySQL and Postgresql.

Offline

Board footer

Powered by FluxBB