Em-Ant / fcc-options-app

Options Inc. web app development
Other
12 stars 7 forks source link

Add geocoding when adding/editing consumer #9

Closed andrealonzo closed 8 years ago

andrealonzo commented 8 years ago

Coodinates must be in this format: {lat: Number, lng: Number}, not {lat: ... , lon: ....}

Em-Ant commented 8 years ago

I think it's better to update geo-location only if the address has changed. This can be verified comparing req.body.address with the address of the old object into the db. The same for the settings.