WhiteHouse / petitions

Drupal installation profile powering We The People at petitions.whitehouse.gov
https://petitions.whitehouse.gov/
1.14k stars 336 forks source link

Geocode and expose an API endpoint for geosearches #61

Open waldoj opened 11 years ago

waldoj commented 11 years ago

When a petition is created, identify any place names within it and store their coordinates (such as with Yahoo Placefinder). Then expose those coordinates as a part of the JSON, and permit proximity searches. Likewise, when a petition is signed, geocode that using a free ZIP centroid database (e.g., 1, 2, 3), and expose those in the same manner. This will enable a variety of location-based services based on We The People data.