web: More debug output
This commit is contained in:
@@ -24,6 +24,7 @@ class WebLocator(LocatorBase):
|
|||||||
geolocate_v1_valid_response_schema)
|
geolocate_v1_valid_response_schema)
|
||||||
self.response_error_validate = fastjsonschema.compile(
|
self.response_error_validate = fastjsonschema.compile(
|
||||||
geolocate_v1_error_schema)
|
geolocate_v1_error_schema)
|
||||||
|
log.debug(f"Using locateurl {locateurl}")
|
||||||
|
|
||||||
async def locate(self, observation, **kwargs):
|
async def locate(self, observation, **kwargs):
|
||||||
jd = observation.copy()
|
jd = observation.copy()
|
||||||
@@ -68,7 +69,9 @@ class WebLocator(LocatorBase):
|
|||||||
|
|
||||||
loc = located.get('location', {})
|
loc = located.get('location', {})
|
||||||
latlon = loc.get('lat'), loc.get('lng')
|
latlon = loc.get('lat'), loc.get('lng')
|
||||||
return latlon, located.get('accuracy')
|
accuracy = located.get('accuracy')
|
||||||
|
log.debug(f"Got result: {latlon}, {accuracy}")
|
||||||
|
return latlon, accuracy
|
||||||
|
|
||||||
|
|
||||||
async def query(observations, locateurl, apikey):
|
async def query(observations, locateurl, apikey):
|
||||||
|
Reference in New Issue
Block a user