Skip to content
This repository was archived by the owner on Feb 26, 2019. It is now read-only.

Allow RDs to directly enter their lat/long coordinates #145

Open
scottstanfield opened this issue Oct 25, 2013 · 2 comments
Open

Allow RDs to directly enter their lat/long coordinates #145

scottstanfield opened this issue Oct 25, 2013 · 2 comments
Assignees
Milestone

Comments

@scottstanfield
Copy link
Member

Right now, lat/long is generated from the rdlist.yaml metadata, namely the city/state/country.

If there exists a yaml entry for lat/long, we could just go with that, bypassing the need for the reverse geocode lookup.

@ghost ghost assigned scottstanfield Oct 25, 2013
@ldex
Copy link
Contributor

ldex commented Oct 25, 2013

That should work better.
To get your lat/long just browse google maps and right-click "more info on this location" and you'll get your data.

@balassy
Copy link
Contributor

balassy commented Oct 26, 2013

Good idea, because it will allow manual correction of the reverse geocoding issues!

However the offset problem is not with the reverse geocode lookup, rather than these lines in the map.js:

        var latVal = parseInt(person._location.lat);
        var longVal = Microsoft.Maps.Location.normalizeLongitude(parseInt(person._location.lng));

Just remove the parseInt casting and all pins will be in the correct location!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants