My appologies if this has come up elsewhere.

I want the user to enter the address details and NOT use the map to enter co-ordinates.

In this example, lets say they just enter the Province and the City.

So, on creating a page initially this works fine and the lattitude and longitude fields are populated with numbers. I then display a map using these 2 fields and generally it's spot on.

However, if the user then edits the page and changes for instance the city and the province to something else, both valid values, the lattitude and longitude fields both display 0.00000 and therefore even though the CITY and PROVINCE fields are correct, the map displays a marker in the middle of the ocean,

I have also tried the latest dev 6.x.3.x-dev and the same issue occurs.

For your information this DOESN'T happen for a U.S. address, but does for UK addresses.

Any ideas?

Comments

mtmoore’s picture

Slight correction to the above.

If you enter a City and then edit it, it's ok.

If you edit it with a STREET address and WITHOUT a number to that street, it's ok.

As soon as you edit it WITH a Street number, it fails and reverts to 0.

For your information, when you enter the street number and street for the first time, the lat and long are fine, it's only when you edit and save.

Some examples for you to try:

On creating a page, enter:

Street: speedwell way
City: Horsham
Province: West Sussex
Country: United Kingdom

Save it.

Long and Lat are fine.

Edit the page and add the below number to the street.

Street: 8 Speedwell way
City: Horsham
Province: West Sussex
Country: United Kingdom

The lat and long are now in the middle of the Ocean.

Create another new page

Street: 8 Speedwell Way
City: Horsham
Province: West Sussex
Country: United Kingdom

Lat and Long are ok.

I could not replicate this issue with a U.S. address.

yesct’s picture

this is a great description of the bug. I hope someone can find the error!

I wonder if a custom function in location.uk.inc might be a place to start looking as sometimes country specific code is put in location.xx.inc files.

yesct’s picture

Status: Active » Postponed (maintainer needs more info)

there is lots of changes in the new release...

If someone can confirm this is still a bug in the newest official release, please reply within 2 weeks with a detailed summary and set the status back to active.

ankur’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Cannot reproduce. If you're still seeing this error, please feel free to re-open this ticket.