Active Topics

 



Notices


Reply
Thread Tools
otsaloma's Avatar
Posts: 126 | Thanked: 1,400 times | Joined on May 2011 @ Finland
#111
Originally Posted by pichlo View Post
The last question, how can I navigate to given geo coordinates? I tried for example "geo:55.149,-3.189" but received "no search results".
It seems there's a small oversight in my regular expression it doesn't work for negative coordinates. Also, if you're typing in manually, you can skip the "geo:" part, any of "LATITUDE,LONGITUDE", "LATITUDE, LONGITUDE", "LATITUDE LONGITUDE" should work.
 

The Following 5 Users Say Thank You to otsaloma For This Useful Post:
pichlo's Avatar
Posts: 5,153 | Thanked: 15,629 times | Joined on Sep 2012 @ UK
#112
Originally Posted by rinigus View Post
Its a job of search provider, not map client. However , you probably have some place in a city to go to , why don't you enter that? I'll try to remember it when I get to work on search .
There have been a number of occasions when I was not navigating to any specific place, just a general area "somewhere around the centre".

Who runs the heuristics and makes assumptions depends on the agreed interface, does it not? You can have a dumb client and a smart server or the other way around. I am mostly leaning towards a dumb server and rely on the client to formulate the query properly. It makes for a more flexible design as the server can be more easily reused in different clients, but it's up to you.

Regarding the "geo:x.xxx,y.yyy" notation, it seems to work after all but only for positive numbers. "geo:55,1" works fine, "geo:55,-1" gives "no results". It must be a limitation on the input field because all destinations I've tried so far have been on the western hemisphere with negative longitudes and they all worked fine, so the backend must be alright.

EDIT: I see we cross-posted. Kewl. Thanks for answering.
__________________
In particle accelerators atoms are indeed not only touching each others. But banging together in a massive explosive orgasm.
-- nieldk in a TMO post
 

The Following 2 Users Say Thank You to pichlo For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:08.