Hi,

I'm not sure if its just me.

But according to the zipcode..mysql files

the coordinates are listed in this order:
- longitude
- latitude.

But the schema seems to list them as:
- latitude
- longitude.

ie. the latitude and longitude needs to swap places for proximity search to work properly.

Can someone confirm this analysis is correct?

cheers

CommentFileSizeAuthor
#3 zipcodes.be_.mysql_.zip50.71 KBPol
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

juicytoo’s picture

I used this mysql query :

UPDATE zipcodes SET latitude =(@temp:=latitude), latitude = longitude, longitude = @temp
netsensei’s picture

Same here for zipcodes.be.sql.

juicytoo's trick worked perfectly to solve this.

I think we could go two ways with this:

1. change all the zipcodes in the SQL and make sure the data matches the correct columns
2. be lazy and just add juicytoo's query to the end of the affected sql files.

I'd go for 1. Should be doable with a bit of regex magic.

Pol’s picture

FileSize
50.71 KB

Here is the good file.

YesCT’s picture

Status: Active » Postponed (maintainer needs more info)

I remember a recent issue about this... Please check to see if this is still a problem in the new release. If it is, reply with a new summary and set the status back to active.

pfrenssen’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
jbfelix’s picture

Thank you Pol !