VirtualSky icon indicating copy to clipboard operation
VirtualSky copied to clipboard

Can I use "city" instead of coordinates?

Open lexterror opened this issue 4 years ago • 1 comments

I would like to know if there's a way of setting the city without coordinates?

I noticed there was a "cities.txt" file...

Thank you!

lexterror avatar Aug 30 '20 18:08 lexterror

@lexterror I'm not sure if you mean in the user interface or via code or both or something else. In the embed version you click on the coordinates to get a location option that lets you enter a place name. If you were asking about how to do this via code, view the source of that page and you'll see it uses geo/virtualsky-geo.js (with a callback) which then uses a bunch of files in the geo sub-directory in order to do a location lookup without the need for a server or remote service and without asking for one big lookup file.

slowe avatar Feb 13 '21 10:02 slowe