Skip to content

Conversation

@miamibc
Copy link

@miamibc miamibc commented Mar 7, 2017

Nulls will generate tables with DOUBLE(18,2) which is not good for coordinates (math issues and wrong size). Better values for latitude and longitude is DECIMAL(10,6) this will store with accuracy down to about 1/6th of an inch at the equator.

'options' => array()),
'type' => 'decimal',
'size' => 10,
'options' => array('scale'=>6)),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you put spaces around =>?
Same for the line below

Copy link

@j0k3r j0k3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@j0k3r j0k3r merged commit 3e0e054 into FriendsOfSymfony1:master Mar 7, 2017
@miamibc miamibc deleted the geographical-сoordinate-accuracy-fix branch March 7, 2017 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants