You are not logged in.

#1 2019-11-29 08:51:58

siloam
Member
Registered: 2019-11-29
Posts: 4

Android map server

Hello everyone,
Do exist any map/tile SERVERS that work on on Android? I need a map server that serve tiles locally on Android machine.
I appreciate any help. We will have the national census in Poland and we are in need to provide offline maps in our PWA app for CAPI purposes.

Best regards,
Marek Marczak
Statistics Poland

Last edited by siloam (2019-11-29 11:29:38)

Offline

#2 2019-11-29 17:17:20

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

Re: Android map server

I never heard from a map server that runs on android ...

Why is it a requirement to have that map server on an android device?

Why don't you use map servers on any capable Linux or Windows systems, and have "only" client apps on the android devices?

Offline

#3 2019-11-29 17:20:35

Viajero Perdido
Member
Registered: 2016-10-13
Posts: 97

Re: Android map server

Hello.  I don't know about any *tile server* software, but you might want to look at vector maps in MapsForge format instead.  A vector map for all of Poland from https://www.openandromaps.org/en/downloads/europe weighs in at just under 1GB (likely more when uncompressed), and the MapsForge library for displaying the maps is open source.  With this, you wouldn't need a server because the tiles would be generated on-the-fly in the Android device.

A number of existing Android apps already use these maps.  Hopefully, the precompiled vector map will include all the elements you need for your project.  Another source is: http://download.mapsforge.org/maps/v5/europe/.  The latter omits contour lines which you probably don't need; the former includes them.

Last edited by Viajero Perdido (2019-11-29 17:29:34)

Offline

#4 2019-11-29 20:17:00

siloam
Member
Registered: 2019-11-29
Posts: 4

Re: Android map server

stephan75 wrote:

I never heard from a map server that runs on android ...

Why is it a requirement to have that map server on an android device?

Why don't you use map servers on any capable Linux or Windows systems, and have "only" client apps on the android devices?

Our PWA app is supposed to run well in online and offline mode. Internet connection is not always awailable - especially in countryside. We cannot assume that polsters will have internet access all the time.

Viajero Perdido wrote:

Hello.  I don't know about any *tile server* software, but you might want to look at vector maps in MapsForge format instead.  A vector map for all of Poland from https://www.openandromaps.org/en/downloads/europe weighs in at just under 1GB (likely more when uncompressed), and the MapsForge library for displaying the maps is open source.  With this, you wouldn't need a server because the tiles would be generated on-the-fly in the Android device.

A number of existing Android apps already use these maps.  Hopefully, the precompiled vector map will include all the elements you need for your project.  Another source is: http://download.mapsforge.org/maps/v5/europe/.  The latter omits contour lines which you probably don't need; the former includes them.

I am aware of it. I know about other formats as well (MBTiles, RMap... etc). The problem is we have PWA app and we need to integrate maps into the app in CAPI mode (offline maps for polsters). The library you've mentioned provide maps for Android native apps - not for PWAs. I've already tried to save tiles in Indexeddb. Unfortunately Indexeddb is not very fast and has size limitations. I think we have two options - to serve maps locally just for the PWA (it has wms client built with leaflet.js) or rewrite the app (using i.e NativeScript).

Offline

#5 2019-11-29 22:08:00

Tordanik
Moderator
From: Germany
Registered: 2008-06-17
Posts: 2,496
Website

Re: Android map server

Serving raster images as tiles is straightforward: Something like tile.openstreetmap.org is just a simple "zoom/tileX/tileY.png" directory structure that can be served by any web server, and leaflet.js works well with it.

Now, rendering the tiles on the Android device itself is probably more work. So the feasability of the above might depend on if you can ship the finished tiles with your software (which is only plausible for larger areas if you don't need too many zoom levels).


OSM in 3D: OSM2World

Offline

#6 2019-12-17 08:08:38

IsabelColes
Member
Registered: 2019-12-17
Posts: 1

Re: Android map server

Viajero Perdido wrote:

Hello.  I don't know about any *tile server* software, but you might want to look at vector maps in MapsForge format instead.  A vector map for all of Poland from https://www.openandromaps.org/en/downloads/europe weighs in at just under 1GB (likely more when uncompressed), and the MapsForge library for displaying the maps is open source.  With this, you wouldn't need a server because the tiles would be generated gbwhatsapp on-the-fly in the Android device.

A number of existing Android apps already use these maps.  Hopefully, the precompiled vector map will include all the elements you need for your project.  Another source is: http://download.mapsforge.org/maps/v5/europe/.  The latter omits contour lines which you probably don't need; the former includes them.

Feedback: Add option to specify vehicle type e.g. Van or LGV so the maps will only suggest accessible suitable routes for the vehicle type E.g. avoid low bridge with height restrictions, avoid narrow roads or unpaved routes uns

Offline

#7 2019-12-17 12:28:45

SomeoneElse
Member
Registered: 2010-10-13
Posts: 1,314

Re: Android map server

Tordanik wrote:

Serving raster images as tiles is straightforward: Something like tile.openstreetmap.org is just a simple "zoom/tileX/tileY.png" directory structure that can be served by any web server, and leaflet.js works well with it.

Now, rendering the tiles on the Android device itself is probably more work. So the feasability of the above might depend on if you can ship the finished tiles with your software (which is only plausible for larger areas if you don't need too many zoom levels).

Storing tiles and using something like leaflet.js on-device is quite feasible - I've actually worked on a couple of commercial things that did that (if I remember correctly one using Leaflet, one using OsmDroid).  I wrote a quick and dirty example of that sort of thing at https://github.com/SomeoneElseOSM/OSMembedded a good few years ago.  As suggested, there will be all sorts of issues if you want high zoom levels (one I remember was running out of inodes for files, but that wasn't on Android).

However, in 2019 it's surely not the best option; as Viajero Perdido suggested some sort of vector map is surely a better option.

Offline

#8 2019-12-17 18:33:18

kocio
Administrator
From: Warszawa
Registered: 2013-09-04
Posts: 3,351
Website

Re: Android map server

Hi,

I guess it's best to contact with OpenStreetMap Polska:

http://openstreetmap.org.pl/kontakt/

Current president was responsible for OSM deployment in Polish State Fire Service and there are more active people trying to promote OSM. This sounds like a very interesting case to me.

You can also talk with Polish community on this subforum:

https://forum.openstreetmap.org/viewforum.php?id=23

Offline

#9 2019-12-18 00:06:45

jendrusk
Member
From: Bialsko-Biała
Registered: 2012-08-07
Posts: 283

Re: Android map server

@siloam
Following @kocio - write or call me please. Polish OSM Association is at your service - our goal is to help everyone who want to create or use OSM data... specially in Poland.
You can find my number at our website (http://openstreetmap.org.pl/stowarzyszenie/wladze/)

I have some experience in this matter and I'll be happy to help you 

Looking forward to hear from you.

Andrzej

Offline

#10 2020-04-18 05:23:23

MehwishYati
New Member
Registered: 2020-04-18
Posts: 2

Re: Android map server

Get the mobile app's source code for Android and iOS to view the vector tiles installed with OpenStreetMap in MBTiles. I even work on your GPS position and offline. The OpenMapTiles team has launched this project for the creation of your project!

Seek to access a street plan for the entire world, country or city of your choosing, offline map features. You can also incorporate and exchange the map data with your query!

In your commercial products or in any other projects, the source code or its parts may be used. Code is provided for Android and iOS in GitHub format (equivalent to the account required) to access a private repository. The code itself or its sections can not be exchanged with third parties.

The mapping component's source code is derived from Mapbox SDKs with open source support for iOS and Android. The software is written in the programming language of the native platform (Java on Linux, Swift on iOS).

Offline

Board footer

Powered by FluxBB