lukemadera / meteor-autoform-googleplace

Google Places Autocomplete input (without map). Returns an object with formatted address components
21 stars 19 forks source link

Support GeoJSON For coordinates #2

Closed praveenkoka closed 9 years ago

praveenkoka commented 9 years ago

@lukemadera It would be great if the location could be saved in a GeoJSON format, as against the current lat and lng. Example is below. Reference( http://geojson.org/ , http://docs.mongodb.org/v2.6/reference/operator/query/near/#query-on-geojson-data)

{
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1] // [ lng, lat ]
  },
}

That would enable geospatial queries on mongo.

lukemadera commented 9 years ago

Sounds good @praveenkoka - I'll be fairly busy the next day or so but I'll look into it when I can!

praveenkoka commented 9 years ago

@lukemadera awesome! I forked your repo and wrote some code to test locally - https://github.com/praveenkoka/meteor-autoform-googleplace

lukemadera commented 9 years ago

sorry @praveenkoka - been a hectic week and I'm off to Thailand for 2 weeks early tomorrow morning so I won't get to this until I get back!

zeroasterisk commented 9 years ago

:+1:

lukemadera commented 9 years ago

@praveenkoka been swamped but finally catching up and should be much more responsive now! Let me know if you have any further issues with this!

praveenkoka commented 9 years ago

@lukemadera Awesome thanks!