Thanks, Kieran.
Chris. On 20 Nov 2010 04:53, "Kieran Fleming" <[email protected]> wrote: > On Fri, 2010-11-19 at 16:20 +0100, Pontus Freyhult wrote: >> Hi, >> >> > Good news, the 'Find Nearest' function now seems to work, but whenI try to >> > navigate to somewhere, I still get Postcode or Destination not recognized. I >> > also notice that the GPS icon seems to drop-off as soon as I switch to the >> > 'Directions' tab. >> >> It seems for me it works if I search for something local (a street) >> whereas it won't work if I try to get directions for another town. >> >> After tcpdumping I saw that queries were made for things like >> "Hedemora, Sweden, Uppsala, Sweden" (Hedemora and Uppsala are >> towns/cities, Sweden is the country). Looking at the code >> (./src/org/opensatnav/services/NominatimGeoCoder.java and >> ./src/org/opensatnav/GetDirectionsActivity.java), this isn't >> surprising. >> >> Unfortunately, I see no easy way of solving this in the current >> mapquestapi. Hopefully, it's only because I've not understood it all, >> but I'd be glad if anyone could suggest a query style that works both >> for "local searches" (streets) and "faraway directions" (get to that >> town). >> >> /Pontus >> _______________________________________________ >> Osn-dev mailing list >> [email protected] >> https://lists.kentgeek.org/mailman/listinfo/osn-dev > > > I think the only way to solve it properly is to perform multiple > searches and aggregate the results as specified here: > https://bugs.launchpad.net/opensatnav/+bug/648570 > > The way it works now is that it appends the user's location to the > query. For POI searches it works like this: > query, village, town, suburb, city, country > and for text searches it does this: > query, town, city, country > > Note that it skips entries that are not applicable so if you don't live > in a village, for example it won't add that to the query. > > At least with this change you don't have to type out your city/country > every time or deal with results that don't make sense. This change was > also necessary for the POI search as Nominatim now doesn't search from a > point anymore. > > Please give me feedback on what you think. > > Cheers, > Kieran > > _______________________________________________ > Osn-dev mailing list > [email protected] > https://lists.kentgeek.org/mailman/listinfo/osn-dev
_______________________________________________ Osn-dev mailing list [email protected] https://lists.kentgeek.org/mailman/listinfo/osn-dev
