This is my second variant of the plugin, this time using Here Maps as the source of traffic/distance/time instead of google map.
The main advantage is the cost if you have multiple devices or use a very polling rate as Here maps free tier offers 250K calls/month Vs. Googles $200 dollar equivalent which is 20K combined calls/month.
To use it, you will have to register to a dev account just like for google. https://developer.here.com
After that you will need to obtain an app_ID and an app_code which you will plugin to the device variables of the plugin.
To install the plugin, install it as normal and download the two L_IPhone.lua and J_IPhone.js from the repo and upload them to the /etc/cmh-ludl folder of the vera or openluup or you can use the apps/develop apps/luup file menu and do a drag and drop.
After using it for little over 1 week without problems on openLuup/ALTUI. I think it is now ready for those of you who want to try it. I think I have completely replaced google map and reproduced all the functionalities with Here. A couple of additional changes I made: The plugin does not make a call to Here to get address and distance if no device has not moved.
Not as is. It would require some refactoring. I have been using this version successfully for a few months now. Maybe I will adapt it so it can be merged into @amg0’s google version when I get the time.
The only reason I ask is that I’ve broken Google this month messing around with polling rates for Mrs C. And now she’s stuck in traffic and I have no idea where (and of course our ‘geofence’ won’t work)
Gave it a try, signed up for developer, uploaded the files and put in the App ID and and App Code was not able to see the map. Reloaded the engine a few times and still not showing up.
I inputed the API key and AppCode not the AppID. I was wondering if that was needed but assumed since it wasn’t mentioned that it wasn’t. Will give this another go!
The screenshots above were before I inputted any of the variables… It still showed an empty map. After the variables are set, I get a map. The map is displayed through javascript which is pretty universal. Not sure why it would not work.
So it was just the App ID I was missing. Map showed up perfectly for me. Only issue that I see right now is the polling map doesn’t show up, the range does though.
So im tracking 3 iPhones and prior to adding the new Maps they’ve been polling just fine. Now one of them is saying no location information for that device. Could this have to do with the fact that the maps has max quota of 2 uses?