ushahidi / Ushahidi_Web

Ushahidi v2. A platform that allows information collection, visualization and interactive mapping, allowing anyone to submit information through text messaging using a mobile phone, email or web form.
http://www.ushahidi.com
Other
899 stars 624 forks source link

Incorrect display of lat\lon coordinates on the map #1259

Open ventsislav04 opened 11 years ago

ventsislav04 commented 11 years ago

Hello All,

I'm using ushahidi version 2.7.1, and I have found out a latitude\longitude bug.

This is the list of the installed software, that i'm running on ushahidi:

OS: debian 7.1 x64; Linux ushahidi 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 GNU/Linux

PHP: PHP 5.4.4-14+deb7u4 (cli) (built: Aug 23 2013 14:37:41)

MySQL: +-------------------------+------------------+ | Variable_name | Value | +-------------------------+------------------+ | innodb_version | 5.5.31 | | protocol_version | 10 | | slave_type_conversions | | | version | 5.5.31-0+wheezy1 | | version_comment | (Debian) | | version_compile_machine | x86_64 | | version_compile_os | debian-linux-gnu | +-------------------------+------------------+

Web Server: Server version: Apache/2.2.22 (Debian) Server built: Mar 4 2013 22:05:16

When I'm trying to find out the following location on the map with ushahidi: 41.91864, 24.44970, the application returns the following coordinates: 41.9167609, 24.4433512 which are the coordinates, returned by the google geocoding service, and not the actual location of the lat\lon point:

image

In google maps, the coordinates 41.91864, 24.44970 are displayed fine:

image

Could you please help me or advise me how to resolve the issue?

Thank you in advance!

ditorelo commented 10 years ago

Hi @ventsislav04,

So, kinda annoyingly in this case, the google geocode API will perform a reverse geocoding when you pass a latitude longitude to it and return the data for the closest known address for it. That's what's causing your pin to be shifted like that. I reckon this is actually the most common use case for Ushahidi so it makes sense.

When creating / editing a report you can actually re-position the pin to the correct location after you clicked on the "find location" button. Just drag and drop the location handle where you want and it should work. Do you think that would solve the problem for you?

ventsislav04 commented 10 years ago

Hello @ditorelo,

Many thanks for your reply. I will test the scenario, and I will provide you a feedback.

rjmackay commented 10 years ago

@ventsislav04 I think @ditorelo is right. If you just update the yellow latitude and longitude fields instead do you get the right location?