Google Geocode Custom Component - GPS to Street Address

My Google trail will expire soon. What is alternative for Google?

Places

Does anyone know the cost of this after the trial period ends.

https://developers.google.com/maps/documentation/geocoding/usage-and-billing

I would like to have another order of the sensor values.

As it is now, for me:

Street number, street and last city.

What Iā€™d like to do is switch the places of Street number and street, any ideas?

I need some help with a API key. When following the instructions for creating one, something probably went wrong and I didnā€™t get one presented.
So I enabled it myself, but donā€™t know if I checked 2 rights one(s). Now Iā€™m getting this error for the sensor : This API project is not authorized to use this API.

Below APIā€™s are active:

image

First I had only places checked, but that did not work neither, any idea how to get this working?

Fixed it by removing both APIs and started from the beginning as described on Github

Completed the steps for the Community install and set up a API and sensor but in Lovelace getting ā€˜Awaiting Updatesā€™

Any ideas on what I can check please.

nice :slight_smile: I use google maps. had to go on the free trail to get the API any one know know if this is rightā€¦

Hi @ michaelmcarthur
How can I set the global scan_interval to something other than the default?
I see in the google platform that it polls a lot

Also, is there a way to control time range to poll or time range not to poll? For example, during the night I donā€™t need to poll for location.

The component already does this. Every 60 seconds it runs. Every time your gps coordinates change the component makes a google api call. If you are in one of your zones eg home or work it does not call the api. This saves on api calls and keeps below the api limit before any charges are issued.

Hey @michaelmcarthur, thanks for the reply :slight_smile:

But how can I control the scan_interval?
Will this work to scan every 5 minutes?

  • platform: google_geocode
    origin: device_tracker.XXX
    name: Me
    options: street_number, street, city
    gravatar: [email protected]
    api_key: XXX
    scan_interval: 300

Another nice feature to have would be to be able to define a radius.
Device location depends on device accuracy - and so sometimes when the device is in the same location, but it reports different lat/lon values.

Being able to define a radius, will allow to ā€œassumeā€ same place in terms of should we call the API, like a dynamic zone

So, say the defined radius is 20m, I leave my home zone. A new location is received and is considered the circle center.
60 seconds later another location is received but it is within 10m from the center, so it is ignored.
60 seconds later another location is received but this time it is within 25m from the center, so it is not ignored and is now the new circle center.

Think that would work?

Hi guys. This is an awesome integration! Thanks @michaelmcarthur michaelmcarthu

Is there a way to show the address from Google Geocode in the personā€™s information (instead of the Latitude and Longitude) when clicking the person badge?

Thanks

+1
It would be very nice to be able to set this up as a device_tracker for a person.

   Hello guys, i haven't got this to work yet. If someome could point me in the right direction, i would highly apreciate it. I did the following described in the instalation instructions: 1. i put the 2 files (manifest.json and sensor.py) into a directory named google_geocode under config/custom_components dir; 2. restarted HA; 3. entered the required info in configuration.yaml (platform and origin). When i check my configuration, i'm getting an error "Platform error binary_sensor.google_geocode - Integration 'google_geocode' not found."

Hi there,

I am attempting to set up this Custom Component and have a question regarding one of the lines in the yaml section.

Can you please advise what the following line is required for?

- platform: google_geocode

I have added the following to my configuration.raml, which according to your instructions, I think is correct :

sensor:
  - platform: google_geocode
    name: James
    origin: device_tracker.james_pixel_6
    options: street_number, street, city
    display_zone: hide

But the sensor is still stuck on updating after 60 minutes:

The yaml has no errors, have I missed something?

Hi Is there anyway to use this integration by passing directly the longitude/latitude instead of a device.tracker ?

I am trying to get the city from a lat/long that I receive from a nodered information ?

Hi all,

Just set this up in HA and it is working, however the location is not updating in HA. eg: It has my location as where I was 5 hours ago, not where Iā€™m presently.

My config is like this:

sensor:
  - platform: google_geocode
    name: Greg
    origin: device_tracker.pixel_4a
    options: street, city
    display_zone: show
    #gravatar: [email protected]
    api_key: xxxxyyyyyyzzzzz
    language: en-AU
    region: AU

Are there some settings that I should check?

TIA

1 Like