I have a “place” object from Google Maps which has a set of coordinates that represent a bounding box for a given location, say London. Each set of coordinates has a latitude and longitude. I have written the below code to find the centerpoint, but I am not sure if it does actually produce the centerpoint. What if the polygon
Tag: geolocation
Geolocation: Mapping and POI with OpenStreetMap
I’m making a website, where the visitor gets its position showed on a map and within a chosen radius (e.g. 10km) the visitor can see some POIs (e.g. Restaurants, Bars). I have this code so far: It shows me my position on a map with a marker using Google Maps. The thing is, I would like to use the maps
Is there an easy way to determine which hemisphere a user is in?
I’m working on a project which includes seasonal content, and we’re thinking of determining the user’s location to work out what season it is for them. The obvious way of doing this is to Geo-locate their IP, then grab the latitude. > 0 is Northern hemisphere, and < 0 is Southern. I’m happy to go that way – though it
Wait until a condition is true?
I’m using navigator.geolocation.watchPosition in JavaScript, and I want a way to deal with the possibility that the user might submit a form relying on location before watchPosition has found its location. Ideally the user would see a ‘Waiting for location’ message periodically until the location was obtained, then the form would submit. However, I’m not sure how to implement this