Originally posted by sooty
View Post
Announcement
Collapse
No announcement yet.
Reverse Geocode error
Collapse
X
-
Thanks for the logs etc.
I tested a few of the coordinates from your logs with the Google Geocoding API and they all come back OK so the issue is not that it can't find an address for the given coordinates.
What I did notice during testing is that sometimes (but not always) when making a reverse geocode request without specifying an API key it would fail but then a few seconds later would succeed.
This did not happen when an API key was specified which could suggest a number of causes. Perhaps requests with a key are prioritised at busy times and non-key requests are refused. I really don't know the answer.
What you should see in the plug-in is that it will set Country, Town, Address etc to "Unknown" or "Not Available" if a reverse lookup fails.
I could possibly put something in so if a lookup fails it will wait a couple of seconds and try again. I'll think about that...
Paul..
Comment
-
Yesterday I had added the google api, the wife just now left, she is now in country unknown
the google api key does not seem to change it...
Wim-- Wim
Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData
1210 devices/features ---- 392 events ----- 40 scripts
Comment
-
Originally posted by w.vuyk View PostYesterday I had added the google api, the wife just now left, she is now in country unknown
the google api key does not seem to change it...
Wim
https://maps.googleapis.com/maps/api/geocode/xml?latlng={latitude},{longitude}
latitude and longitude are decimal values using the "." dot as a separator.
I'm currently working on implementing a "Non-Google" free alternative for things like reverse geocode and driving distance etc.
Paul..
Comment
-
Paul,
First time I got the address correctly, a repeated post delivered this:
<GeocodeResponse>
<status>OVER_QUERY_LIMIT</status>
<error_message>
You have exceeded your daily request quota for this API. We recommend registering for a key at the Google Developers Console: https://console.developers.google.co...ials?project=_
</error_message>
</GeocodeResponse>
What I noticed also is that the response in the log is a bit different: a first message (coming from an event) is showing the address, but within seconds a second messages comes and this is the error. Looks like the plugin is sending the request twice for the same Iphone here?
Code:sep-27 15:57:08 Pushover 3P Pushover Notification Sent - Message Title Joy is nu in een ander land aangekomen! sep-27 15:57:08 Pushover 3P Pushover Notification Sent - Message Title Joy is nu in Unknown sep-27 15:57:06 Event Running script in background: C:/HS3/scripts/speak.vb("Main","Joy is in een ander land aangekomen") sep-27 15:57:06 Event Event Trigger "Locatie Joy ander land" sep-27 15:47:47 PHLocation Error (UpdateUserDevice) Error getting reverse geocode for [2927] Lat: xx.2122264374534 Lon:x.9537963289823 sep-27 15:47:44 Locatie Joy is nu op locatie Asselsestraat xxx, xxxxxxxxxxn, Netherlands @ 27-9-2017 15:47:10 Acc: 50m sep-27 15:44:20 Huis Bovenetage vrij
Wim-- Wim
Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData
1210 devices/features ---- 392 events ----- 40 scripts
Comment
-
Paul,
Reviewed my log on this and it seems to be this way everytime, a first query gets the location and the next within seconds generates the error.
It seems to have started on September 20 according to my log. Must be something Google changed.
Wim-- Wim
Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData
1210 devices/features ---- 392 events ----- 40 scripts
Comment
-
Originally posted by w.vuyk View PostPaul,
First time I got the address correctly, a repeated post delivered this:
<GeocodeResponse>
<status>OVER_QUERY_LIMIT</status>
<error_message>
You have exceeded your daily request quota for this API. We recommend registering for a key at the Google Developers Console: https://console.developers.google.co...ials?project=_
</error_message>
</GeocodeResponse>
What I noticed also is that the response in the log is a bit different: a first message (coming from an event) is showing the address, but within seconds a second messages comes and this is the error. Looks like the plugin is sending the request twice for the same Iphone here?
Code:sep-27 15:57:08 Pushover 3P Pushover Notification Sent - Message Title Joy is nu in een ander land aangekomen! sep-27 15:57:08 Pushover 3P Pushover Notification Sent - Message Title Joy is nu in Unknown sep-27 15:57:06 Event Running script in background: C:/HS3/scripts/speak.vb("Main","Joy is in een ander land aangekomen") sep-27 15:57:06 Event Event Trigger "Locatie Joy ander land" sep-27 15:47:47 PHLocation Error (UpdateUserDevice) Error getting reverse geocode for [2927] Lat: xx.2122264374534 Lon:x.9537963289823 sep-27 15:47:44 Locatie Joy is nu op locatie Asselsestraat xxx, xxxxxxxxxxn, Netherlands @ 27-9-2017 15:47:10 Acc: 50m sep-27 15:44:20 Huis Bovenetage vrij
Wim
I think this will only happen with iCloud accounts. The reason is that it can poll iCloud multiple times before it gets a valid fix and I think that each poll will result in a reverse geocode query even if the fix isn't used.
Yes, the plug-in will need to be restarted for the API key to take effect.
Paul..
Comment
-
Paul,
We are indeed using icloud here, for 2 iphones.
I did restart the pluygin to have the api key take effect, but - altough less frequent - it keeps getting the reverse geocode error here regularly.
Thanks,
Wim-- Wim
Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData
1210 devices/features ---- 392 events ----- 40 scripts
Comment
-
I've seen it also a couple of times ,
I checked the log right now and in total from the 23-09 till today it happend 5 times.. so its not that much
I keep an eye on it ,
Regards
Originally posted by w.vuyk View PostPaul,
We are indeed using icloud here, for 2 iphones.
I did restart the pluygin to have the api key take effect, but - altough less frequent - it keeps getting the reverse geocode error here regularly.
Thanks,
WimPreferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts
HS3Pro 4.1.14.0 on windows 10 enterprise X64 on hp quadcore laptop 8 GB.
Comment
-
i found a good website that offers 10k queries a day for reverse geo
https://locationiq.org/
RegardsPreferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts
HS3Pro 4.1.14.0 on windows 10 enterprise X64 on hp quadcore laptop 8 GB.
Comment
-
Hi paul,
I'm getting the error every time now.
can you please add this api to the plugin https://locationiq.org/ u have 10k free requests a day.
I can't use the lookup now, i get constantly the error.
regardsPreferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts
HS3Pro 4.1.14.0 on windows 10 enterprise X64 on hp quadcore laptop 8 GB.
Comment
-
Originally posted by Malosa View PostHi paul,
I'm getting the error every time now.
can you please add this api to the plugin https://locationiq.org/ u have 10k free requests a day.
I can't use the lookup now, i get constantly the error.
regards
https://maps.googleapis.com/maps/api...08,-1.11649607
I'm currently making a lot of changes to the plug-in and adding support for alternative API's for things like reverse geocoding and distance matrix lookups etc is part of those changes.
This is not a 5 minute job because as well as making all the changes in the plug-in and making sure it doesn't screw things up for existing users, I also have to update the user guide before releasing a new version.
If you want to test a beta version with support for alternative API's, then send me an email and I will contact you when I have something available for testing.
Paul..
Comment
-
Hi Paul,
when i click the link it returns normal.
but on your plugin i get an reverse api error,
also my devices don't update only battery etc.
But i send u an email i really want to beta test if u have something available
regards
Originally posted by sooty View PostGoogle reverse geocode is working fine here without an API key. What do you get if you put this url into a browser ?
https://maps.googleapis.com/maps/api...08,-1.11649607
I'm currently making a lot of changes to the plug-in and adding support for alternative API's for things like reverse geocoding and distance matrix lookups etc is part of those changes.
This is not a 5 minute job because as well as making all the changes in the plug-in and making sure it doesn't screw things up for existing users, I also have to update the user guide before releasing a new version.
If you want to test a beta version with support for alternative API's, then send me an email and I will contact you when I have something available for testing.
Paul..Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts
HS3Pro 4.1.14.0 on windows 10 enterprise X64 on hp quadcore laptop 8 GB.
Comment
Comment