Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin/geocode script for testing geocoding #758

Merged
merged 1 commit into from
Apr 10, 2014
Merged

bin/geocode script for testing geocoding #758

merged 1 commit into from
Apr 10, 2014

Conversation

osfameron
Copy link
Contributor

Run bin/geocode -h for options.

Has:

  • configurable cobrand / config-file / geocoder
  • some diagnostics for missing cobrand

NOTE: the method for overriding $ENV{FMS_OVERRIDE_CONFIG} is clumsy, better ways of dealing with that welcome.

Notable TODOs:

  • reverse geocoding, to double check that latitude actually maps
    somewhere useful (and is within Cobrand's boundaries)
  • diagnosis of relevant CONFIG settings
  • flag to disable caching

mySociety::Locale::gettext_domain( 'FixMyStreet' );

my $geocoder_name = sprintf 'FixMyStreet::Geocode::%s',
$options{geocoder} || FixMyStreet->config('GEOCODER')->{type};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GEOCODER might just be a string here, not a hashref.

@dracos
Copy link
Member

dracos commented Apr 10, 2014

👍

Run bin/geocode -h for options.

Has:

 * configurable cobrand / config-file / geocoder
 * some diagnostics for missing cobrand

Minor fixes rebased into this commit:

 * bin/geocode error if no --cobrand passed
 * bin/geocode docs and accept GEOCODER as string

Notable TODOs remaining:

 * reverse geocoding, to double check that latitude actually maps
   somewhere useful (and is within Cobrand's boundaries)
 * diagnosis of relevant CONFIG settings
 * flag to disable caching
@osfameron osfameron merged commit 62c2c7c into master Apr 10, 2014
@dracos dracos mentioned this pull request Apr 18, 2014
@dracos dracos deleted the geocode-tests branch February 18, 2015 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants