Improving: Markers import from Google MyMaps (.KMZ) to .GPX

683 views
Skip to first unread message

da...@middlemachine.com

unread,
Jul 3, 2017, 10:22:48 AM7/3/17
to Osmand
Hi, first I'd like to show you something, and then ask questions how to make it better.


---------- Google MyMaps --> OsmAnd

One of the best things about OsmAnd is that we're able to stay offline and navigate. A part of that should also be saved markers. Correct me if I'm wrong, but we don't have an online, collaborative way to do this with OsmAnd.

I did this simple solution needed for my project:
http://totalism.org/maps

It uses Google MyMaps, and offers .GPX endpoints.
It does this via a .PHP script that converts the native .KMZ, a zipped .KML, to .GPX, , wrapping gpsbabel.
I'm able to open it in browser on my mobile device, and then "import" it as OsmAnd markers.

The whole thing is a few lines of PHP:
    http://totalism.org/E2H/kmz2gpx.php?LINK=z2VTgpJjSQEo.kYW_4SV5qz-U&NAME=Bologna,%20Italy
I didn't put it on github yet but will if there's interest.
  - "LINK" parameter is the google "mid",
  - "NAME" is a suffix to the .GPX file.



---------- How to improve this by having typed markers?

The marker types, however, are lost in the process.

  - Does anyone here know .GPX enough to say it supports something like this (marker color / ico / type)?
  - Could some of the developers give me some pointers where in the source to look for this? (.GPX file handling) I might take on it myself but would appreciate somebody to help me find my way in the code. Feel free to reach out to me ... da...@middlemachine.com
  - Are there other good ways to have offline maps + offline markers (with OsmAnd)?


Thanks
David


john whelan

unread,
Jul 3, 2017, 10:31:01 AM7/3/17
to osm...@googlegroups.com
You could start with OpenStreetMap rather than Google.  OSMAND openstreetmap android.

Cheerio John

--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Potocnik

unread,
Jul 3, 2017, 10:40:23 AM7/3/17
to osm...@googlegroups.com
Hi John, that's not very helpful.

As far as I know:
* "OpenStreetMap" by itself does not have a marker editor, or ability to create personal markered maps.
* even if I would go to the trouble and host something like uMap http://wiki.openstreetmap.org/wiki/UMap ...... the question is still the same:

*** Would it give me an export endpoint with typed/coloured markers in OsmAnd? ***

Please correct me if I'm wrong, but I don't think so. Otherwise I would appreciate the example, and I think some others would too!

Best regards,
David





--
You received this message because you are subscribed to a topic in the Google Groups "Osmand" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osmand/liQpnu3RIdU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osmand+unsubscribe@googlegroups.com.

john whelan

unread,
Jul 3, 2017, 10:44:32 AM7/3/17
to osm...@googlegroups.com
You can create your own maps for OSMand.  There are a multitude of tools available to process OSM format files including ones to convert different formats into .OSM.  So just create what you'd like then use the OSMand map creator.  It's a fair chunk of work but its doable.

Cheerio John

da...@middlemachine.com

unread,
Jul 3, 2017, 10:52:10 AM7/3/17
to Osmand
Would you be kind enough to actually answer my question which is

*** Is there a way, and what is it exactly, to currently import typed/coloured markers into OsmAnd via .GPX
*** (or some other format)
*** or could somebody give me some guidelines/tips where to code this in myself?

or refrain from further off-topic commenting. Thank you very much.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Osmand" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osmand/liQpnu3RIdU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osmand+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.

john whelan

unread,
Jul 3, 2017, 11:20:49 AM7/3/17
to osm...@googlegroups.com
You have no control over how OSMAND displays something but you do have control over what you put into it.  So in answer to your question there are a variety of icons and ways that are displayed in OSMand you can format the map put into it in such a way that your icons / ways will display as something that OSMand currently displays.

I think what you are asking for is some way to display additional information in addition to what OSMand currently displays and for that you'll need to talk very nicely to the developers.

Cheerio John

To unsubscribe from this group and stop receiving emails from it, send an email to osmand+unsubscribe@googlegroups.com.

Jack Burke

unread,
Jul 8, 2017, 2:38:45 PM7/8/17
to Osmand
David, just to clarify to be sure I understand what you're asking.  You just want to import GPX *points* (not routes) into OsmAnd, and have them show up as colored markers?

--jack

Bart Eisenberg

unread,
Jul 9, 2017, 3:14:08 AM7/9/17
to Osmand
Google My Maps supports a wide variety of points--different colors, different icons. But in my experience, once you export those points as a KML, convert that KML to a GPX and display the resulting GPX in OsmAnd, all you get are undifferentiated points--same icon, same color. The only exception I know of is that if you create multiple layers in My Maps, you can export a separate KML for each, and then assign within OsmAnd a different color to each. 

I think that's the answer to your first question.  I don't know of any other format for specifying POIs, other than GPX, that OsmAnd supports. KML is not supported.  And I don't have an answer to your third question, but it's an interesting one.   

Bart Eisenberg

unread,
Jul 9, 2017, 3:24:14 AM7/9/17
to Osmand
>Are there other good ways to have offline maps + offline markers (with OsmAnd)?

There's at least one way to georeference, format, and export raster maps, which could of course include markers, into OsmAnd.  I walk through it in a video here: https://youtu.be/Y_fekLfcUOc
Reply all
Reply to author
Forward
0 new messages