Fixed CR suggestions
This commit is contained in:
parent
ab5ef64e83
commit
a34da0adb5
@ -98,7 +98,6 @@ RETURNS Geometry AS $$
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
service_manager.assert_within_limits()
|
service_manager.assert_within_limits()
|
||||||
|
|
||||||
geocoder = HereMapsGeocoder(service_manager.config.heremaps_app_id, service_manager.config.heremaps_app_code, service_manager.logger, service_manager.config.heremaps_service_params)
|
geocoder = HereMapsGeocoder(service_manager.config.heremaps_app_id, service_manager.config.heremaps_app_code, service_manager.logger, service_manager.config.heremaps_service_params)
|
||||||
coordinates = geocoder.geocode(searchtext=searchtext, city=city, state=state_province, country=country)
|
coordinates = geocoder.geocode(searchtext=searchtext, city=city, state=state_province, country=country)
|
||||||
if coordinates:
|
if coordinates:
|
||||||
@ -131,7 +130,6 @@ RETURNS Geometry AS $$
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
service_manager.assert_within_limits(quota=False)
|
service_manager.assert_within_limits(quota=False)
|
||||||
|
|
||||||
geocoder = GoogleMapsGeocoder(service_manager.config.google_client_id, service_manager.config.google_api_key, service_manager.logger)
|
geocoder = GoogleMapsGeocoder(service_manager.config.google_client_id, service_manager.config.google_api_key, service_manager.logger)
|
||||||
coordinates = geocoder.geocode(searchtext=searchtext, city=city, state=state_province, country=country)
|
coordinates = geocoder.geocode(searchtext=searchtext, city=city, state=state_province, country=country)
|
||||||
if coordinates:
|
if coordinates:
|
||||||
@ -168,7 +166,6 @@ RETURNS Geometry AS $$
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
service_manager.assert_within_limits()
|
service_manager.assert_within_limits()
|
||||||
|
|
||||||
geocoder = MapzenGeocoder(service_manager.config.mapzen_api_key, service_manager.logger, service_manager.config.service_params)
|
geocoder = MapzenGeocoder(service_manager.config.mapzen_api_key, service_manager.logger, service_manager.config.service_params)
|
||||||
country_iso3 = None
|
country_iso3 = None
|
||||||
if country:
|
if country:
|
||||||
@ -211,7 +208,6 @@ RETURNS Geometry AS $$
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
service_manager.assert_within_limits()
|
service_manager.assert_within_limits()
|
||||||
|
|
||||||
geocoder = MapboxGeocoder(service_manager.config.mapbox_api_key, service_manager.logger, service_manager.config.service_params)
|
geocoder = MapboxGeocoder(service_manager.config.mapbox_api_key, service_manager.logger, service_manager.config.service_params)
|
||||||
|
|
||||||
country_iso3166 = None
|
country_iso3166 = None
|
||||||
|
Loading…
Reference in New Issue
Block a user