Command Line Interface - Search Geocoding API


SUBMITTED BY: jlolk3r

DATE: Jan. 19, 2016, 3:16 a.m.

FORMAT: Text only

SIZE: 765 Bytes

HITS: 255

  1. The command line interface works just like the Geocoder.search method and allows you to set various configuration options like geocoding service, language, etc. You can also get the raw JSON response (or URL) from the geocoding API:
  2. $ geocode -s geocoder_ca "44.981667,-93.27833"
  3. Latitude: 44.981165
  4. Longitude: -93.279225
  5. Full address: 380 7th St N, Minneapolis, ...
  6. City: Minneapolis
  7. State/province: MN
  8. Postal code: 55403
  9. Country: United States
  10. Google map: http://maps.google.com/maps?...
  11. $ geocode --json "1 Twins Way, Minneapolis"
  12. {
  13. "status": "OK",
  14. "results": [ {
  15. "types": [ "street_address" ],
  16. "formatted_address": "536 1/2 N 3rd St...",
  17. ...
  18. } ]
  19. }
  20. For details see geocode -h.

comments powered by Disqus