teslamate icon indicating copy to clipboard operation
teslamate copied to clipboard

Update geocoder.ex to include Territories

Open mattew124 opened this issue 10 months ago • 10 comments

The address returned by the following link returns a territory in place of state so I have added state aliases to include this information:

https://nominatim.openstreetmap.org/reverse?format=xml&lat=-35.1604&lon=149.1049&zoom=19&addressdetails=1

mattew124 avatar Apr 25 '24 07:04 mattew124

Deploy Preview for teslamate ready!

Name Link
Latest commit 84ce69ed22bd2a01ff422d50c25caed783a72e6e
Latest deploy log https://app.netlify.com/sites/teslamate/deploys/662a05d2ea310400081a50b0
Deploy Preview https://deploy-preview-3868--teslamate.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Apr 25 '24 07:04 netlify[bot]

Once this change is applied is it possible to update existing data?

mattew124 avatar Apr 25 '24 07:04 mattew124

Thanks for your suggestion!

Once this change is applied is it possible to update existing data?

You can code a migration step which can add it for old data, not sure about the performance in this case tbh.

JakobLichterfeld avatar Apr 27 '24 07:04 JakobLichterfeld

This pull request has been automatically marked as stale because it has not had recent activity. It could be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 28 '24 01:05 github-actions[bot]

@JakobLichterfeld I'd say, this PR makes sense....

DrMichael avatar May 28 '24 08:05 DrMichael

@JakobLichterfeld I'd say, this PR makes sense....

Sure, but it is neither complete, nor backward compatible, nor proven to work worldwide. And is stale by OP.

JakobLichterfeld avatar May 28 '24 15:05 JakobLichterfeld

This pull request has been automatically marked as stale because it has not had recent activity. It could be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 29 '24 01:06 github-actions[bot]

nor proven to work worldwide

No Territory for adresses in germany. For example: https://nominatim.openstreetmap.org/reverse?format=xml&lat=48.95662066509727&lon=9.245291956117336&zoom=19&addressdetails=1

JakobLichterfeld avatar Jul 06 '24 11:07 JakobLichterfeld

This needed to be updated as well: https://github.com/teslamate-org/teslamate/blob/336ba301a9c83703d342741f32eebbb1496dc10f/test/support/mocks/geocoder.ex

JakobLichterfeld avatar Jul 06 '24 11:07 JakobLichterfeld

This pull request has been automatically marked as stale because it has not had recent activity. It could be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 06 '24 01:08 github-actions[bot]