Google maps is geolocating incorrectly in some countries #3347
Replies: 29 comments
-
can you provide a link to the documentation stating this? |
Beta Was this translation helpful? Give feedback.
-
What exactly does Fork request? |
Beta Was this translation helpful? Give feedback.
-
I have found an element of answer at this link : http://stackoverflow.com/questions/7764244/correct-address-format-to-get-the-most-accurate-results-from-google-geocoding-ap And in the official geocoder sample : http://googlemaps.github.io/js-v2-samples/geocoder/singlegeocode.html the address number comes first. In all application I have developed the house number comes before the street name and I didn't see any coutnry that put the house number after the street name, is it the case in Belgium? |
Beta Was this translation helpful? Give feedback.
-
it is indeed :) |
Beta Was this translation helpful? Give feedback.
-
@GhaziTriki can you create a PR for this? |
Beta Was this translation helpful? Give feedback.
-
@carakas yes it should be an easy one (if I find the file where I need to look inside). Which is file is it? |
Beta Was this translation helpful? Give feedback.
-
it is in the engine of the location module, both back and frontend
… On 30 Nov 2016, at 17:13, Ghazi Triki ***@***.***> wrote:
@carakas <https://github.com/carakas> yes it should be an easy one (if I find the file where I need to look inside). Which is file is it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#1860 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADd13mWWT5mPhHaME09ZfDpJeI5MpXsXks5rDaCVgaJpZM4LAACr>.
|
Beta Was this translation helpful? Give feedback.
-
@carakas is it also ok to put the street number before the street name in the backend form? |
Beta Was this translation helpful? Give feedback.
-
@GhaziTriki I think it's best to leave it as is. When looking at other countries ( http://www.bitboost.com/ref/international-address-formats.html ) I think most of them use the street + number format. |
Beta Was this translation helpful? Give feedback.
-
I have created a pull request. However I think that the address creation should be more flexible. What we have now is that all fields are mandatory. The street number and the zip code should be optional as the street name and the city should be enough, or at least the street number. |
Beta Was this translation helpful? Give feedback.
-
Personally, I think the address should be a textarea. People can enter the address in their own format. |
Beta Was this translation helpful? Give feedback.
-
@tijsverkoyen it is a more flexible solution that should work better |
Beta Was this translation helpful? Give feedback.
-
@GhaziTriki I closed your PR because the implementation would cause issues for people who have street + number in their country. What I suggest is that you create a new pr and add a setting in the backend to the location module where you can set the format of the address. The default should be the format we have now, but then you can also add the format you need |
Beta Was this translation helpful? Give feedback.
-
the separate fields will be replaced with a single textarea for the address |
Beta Was this translation helpful? Give feedback.
-
take a look at https://github.com/commerceguys/addressing |
Beta Was this translation helpful? Give feedback.
-
@GhaziTriki Are you willing to create a PR using https://github.com/commerceguys/addressing? |
Beta Was this translation helpful? Give feedback.
-
@jonasdekeukelaere I have some time. How do you think we can implement it? |
Beta Was this translation helpful? Give feedback.
-
@GhaziTriki we should implement it in a way that it works for everywhere, maybe just a text area? Or with that library, don't know exactly what is possible |
Beta Was this translation helpful? Give feedback.
-
Hi @GhaziTriki - Did you start this? I can start this now otherwise, I'll add a textarea, as that way everyone is free to use whatever format they please. |
Beta Was this translation helpful? Give feedback.
-
If I'm remembering correct we decided in the core meeting that a single textarea was NOT the way we should go. |
Beta Was this translation helpful? Give feedback.
-
Euh, I remember that a texture was the way to go. As that allows people to enter/format the address as they want. |
Beta Was this translation helpful? Give feedback.
-
So @jeroendesloovere I'll implement it as a textarea |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
And how will you solve the issue of addresses in different address-formats? |
Beta Was this translation helpful? Give feedback.
-
Looking at https://github.com/commerceguys/addressing, So if I'm correct merging "street + number/bus" would be "address line 1" or "address line 2" (if there is an industrial zone to mention). |
Beta Was this translation helpful? Give feedback.
-
The screenshots shows non-standard behaviour, and I don't see any Issues/Pull Requests that asks for extra functionality, so I don't see any reason to add extra dependencies, or make the interface more bloated. |
Beta Was this translation helpful? Give feedback.
-
The actual problem of @GhaziTriki is that "streetnumber" should come before "street". |
Beta Was this translation helpful? Give feedback.
-
In some countries (e.g.: UK) the zip isn't placed before the city. |
Beta Was this translation helpful? Give feedback.
-
As a reminder http://www.bitboost.com/ref/international-address-formats.html |
Beta Was this translation helpful? Give feedback.
-
Type
Problem description
ForkCMS puts the street number before the street name for geolocating addresses. The address number should come first.
Steps to reproduce
Create a location with the following parameters:
The geolocated address is incorrect.
Expected behavior / Proposed solutions
Put the street number before the street name when geolocating.
Beta Was this translation helpful? Give feedback.
All reactions