wiki:BluePrintGISGeolocator

Version 20 (modified by Fran Boon, 14 years ago) ( diff )

--

GeoCoder

Initial module work done by by Zubin Mithra (zubin71) Front-end UI done by Michael Matthews

A python module for a geolocator using

  • Google API
  • Yahoo API
  • GeoNames

Input: service_name, location name

Output format: JSON (easy front end parsing)

Status

Basic Google/Yahoo webservice calls are in modules/s3gis.py.

These have been tied to the front-end Location Selector in a basic form. Using the service requires entering part of an address in the Street Address text area, and optionally including a country in the hierarchical control, then clicking the "Geocoder Search," link. The geocoder service will be queried, and results will be displayed to the user in a popup. The user can select an address from the list, and the selected address will be used to populate the Street Address and zipcode in that text area, as well as the latitude and longitude lines. See below for a list of features that should be added to this functionality.

Unfortunately, there are inconsistent data returns from the Google service so it doesn't always work (the OK button does nothing).

GeoNames support needs adding (there is some GeoNames functionality in S3GIS or another example in jQueryUI AutoComplete: http://jqueryui.com/demos/autocomplete/remote-jsonp.html).

Nominatim support needs adding

API

Output most likely to be used in: OpenLayers

ToDo

A simple controller function would be nice to access the module classes

  1. functionality for BBOX
  2. provision to get results from all services
  3. provision to get results in multiple formats(xml, JSON, kml)
  4. support caching
  5. administration option to selection the geocoding service (Google, Yahoo, or both).
  6. GeoNames tie-ins in the location selector
  7. better hierarchical selector fill-in for selected results. That is, fill in the country and province/state. Filling in the country will require translating the two or three-letter country code to the real country name that appears int the hierarchy.
  8. Make the Google and Yahoo controller services merely wrappers around the more robust geocoding classes (per a comment in those controller).

Also see:

BluePrintGISSearch


GIS BluePrints

Note: See TracWiki for help on using the wiki.