Thread: [SailfishOS] Pure Maps
View Single Post
spag's Avatar
Posts: 121 | Thanked: 275 times | Joined on Oct 2009 @ Blackhawk Island
#869
Originally Posted by rinigus View Post
@spag: start with the geocoder: https://github.com/rinigus/pure-maps...ster/geocoders . That will be required for HERE router as well.
I've implemented a basic version of the HERE geocoder but have yet to figure out how to properly integrate it into Pure Maps.

e.g. when searching for a place "autocomplete" is executed and the results end up below the search field as a "Suggestions" list.
Unfortunately HERE do not provide any coordinates with the autocomplete list so one has to look them up through the regular search API. Is there some sort of callback after the user taps on one of the suggestions?

Right now Pure tries to open them directly and shows 0/0 for latitude/longitude.

Also are there any parameters besides query, lang and limit I can put into the URL?
e.g. API keys and current position or map boundaries to prioritize local search results?
 

The Following 7 Users Say Thank You to spag For This Useful Post: