webuildsg / data

:chart: Data and graphs for repos and events from We Build SG
https://data.webuild.sg
MIT License
16 stars 7 forks source link

map: geolocate event venues #27

Closed sayanee closed 8 years ago

sayanee commented 8 years ago

Example: https://github.com/cheeaun/walkabout-map/blob/master/index.js

thanks @cheeaun :heart_eyes:

and possibly look into geojson - github supports geojson :facepunch:

cheeaun commented 8 years ago

FYI That script also generates a GeoJSON file 👍😎

sayanee commented 8 years ago

whoa :100: :heart_decoration:

sayanee commented 8 years ago

code ref: @cheeaun sometimes d.results[0] is undefined and hence cannot get lat, long for that location. Do you know why? Or how do you get the Lat / Long in those cases? I got back only 7 out of 28 locations' lat/long values.

cheeaun commented 8 years ago

@sayanee probably the usage limits?

sayanee commented 8 years ago

10 requests per second ok :sweat_smile:

Shall write the script to geocode 10 of them every 15 seconds then.

cheeaun commented 8 years ago

every second lah

sayanee commented 8 years ago

geojson done :+1: :100: :earth_asia:

https://github.com/webuildsg/data/blob/gh-pages/public/data/events-per-location.geojson

sayanee commented 8 years ago

or embed the geojson map directly as github pages supports it

sayanee commented 8 years ago

image