Takis
Posts: 0
Joined: Wed Oct 22, 2014 5:10 pm

Incorrect JSON array [longitude, latitude] value: [-86.633965;41.896216]

Hi all

For the adresses I used for Greece, for example [23.793436,38.004065] works fine no issue. In this case the number are the way around
lat=23.793436
long=38.004065

For the address I use in USA [-86.633965;41.896216] I get Incorrect JSON array [longitude, latitude] value

Why, what is the correct way?
Thanks

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Incorrect JSON array [longitude, latitude] value: [-86.633965;41.896216]

For Google - the combination is lat, long .

For data stored in the mongodb - it's the opposite - long, lat....

Not sure if that helps?

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Incorrect JSON array [longitude, latitude] value: [-86.633965;41.896216]

also -in your array - it looks like you are using a ';' semicolon between the values - when it's just a comma - so my USA based address in long, lat is [ -111.634299, 33.248633 ] for example

Takis
Posts: 0
Joined: Wed Oct 22, 2014 5:10 pm

Incorrect JSON array [longitude, latitude] value: [-86.633965;41.896216]

Bruce, YOU ARE RIGHT!
I used the ";" which is wrong.
When put "," is fine.

Thanks!

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Incorrect JSON array [longitude, latitude] value: [-86.633965;41.896216]

Awesome!!!! It's great when things work based on just minor tweaks....good luck!

Return to “Issues”