junjunguo / PocketMaps

Free offline maps with routing functions and more ...
https://github.com/junjunguo/PocketMaps
MIT License
224 stars 70 forks source link

Feature Request: Automatically detect regions #118

Open axet opened 4 years ago

axet commented 4 years ago

Hello!

Seems like cool app with out an important feature - automatically detecting what region / country I'm currently in. It helps a lot on first start, when I have to find correct country and region manually. Especially when openstreetmaps has it's own region separation, choosing correct region is problematic (or it can have a quick search at download activity at least).

As I understand openstreetmaps has *.poly files, for every global map region, knowing which region corresponds to what map can automate map download (and further ).

Another maybe: allowing to choice smaller regions of 60mb to download, instead full central fed district of 800MB size.

Starcommander commented 4 years ago

Hello @axet !

Thanks for your request. PocketMaps is mostly an offline-tool, so after downloading a map, you do not need an internet connection for routing and navigation. Therefore I have to recreate all maps, and offer them on a specific server.

In a first step my suggestion is to implement a quick search for maps. This is not much effort for me, and can help to find the requested map faster.

In a second step later I can try to implement an auto-detection function using that poly-files you suggested.

What do you think?

axet commented 4 years ago

I guess I can remind about default android search activity/toolbar feature. It has to be done (easiest and native method) trough adding in manifest.xml for searching activity:

            <meta-data
                android:name="android.app.searchable"
                android:resource="@xml/searchable" />

Here is original link:

Since I had few issues with default android search and it's behaviour, I created my own SearchView, if you face any issues with default SearchView you can check mine: