Skip to content

Commit

Permalink
Use Ordnance Survey API
Browse files Browse the repository at this point in the history
  • Loading branch information
slawosz committed Dec 7, 2023
1 parent 257881c commit 73503e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ get-cluster-credentials: set-azure-account

aks-console: get-cluster-credentials
$(if $(PULL_REQUEST_NUMBER), $(eval export APP_ID=review-$(PULL_REQUEST_NUMBER)) , $(eval export APP_ID=$(CONFIG_LONG)))
kubectl -n ${NAMESPACE} exec -ti --tty deployment/teaching-school-hub-finder-${APP_ID} -- /bin/sh -c "cd /app && bundle exec rails c"
kubectl -n ${NAMESPACE} exec -ti --tty deployment/cpd-tsh-${APP_ID} -- /bin/sh -c "cd /app && bundle exec rails c"

aks-ssh: get-cluster-credentials
$(if $(PULL_REQUEST_NUMBER), $(eval export APP_ID=review-$(PULL_REQUEST_NUMBER)) , $(eval export APP_ID=$(CONFIG_LONG)))
Expand Down
2 changes: 1 addition & 1 deletion app/lib/local_authority/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def search_centre
end

def geo_result
@geo_result ||= Geocoder.search("#{@query}, UK", params: {limit: 1, polygon_geojson: 1, countrycodes: 'gb'}).first
@geo_result ||= Geocoder.search("#{@query}, UK").first
end

def search_polygon
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/geocoder.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Geocoder.configure(lookup: :google, api_key: ENV.fetch('GOOGLE_MAP_API_KEY'))
Geocoder.configure(lookup: :uk_ordnance_survey_names, api_key: ENV.fetch('ORDNANCE_SURVEY_API_KEY'))

0 comments on commit 73503e8

Please sign in to comment.