It appears that Google Maps API does not always correctly use the Top Level Domain (TLD) of the requesting PC to set its default Region Biasing.
This means that users with TLD = uk sometimes get USA places instead of UK places.
Bedford is good example, which by default plots to Bedford, Massachusetts, USA.
But if the Google Maps API is biased using ®ion=uk it plots to Bedford, Bedfordshire, UK.
The question is - how can the LUA script determine the TLD of its PC so the ®ion= parameter can be set appropriately?
ID:5920
* Map Life Facts Top Level Domain
- tatewise
- Megastar
- Posts: 27075
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Map Life Facts Top Level Domain
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- johnmorrisoniom
- Megastar
- Posts: 882
- Joined: 18 Dec 2008 07:40
- Family Historian: V7
- Location: Isle of Man
Map Life Facts Top Level Domain
A way round it would be to modify the way that yo combine address and place names.
The user could have a drop drown area priorty list to be used if no country is present in the place field.
How that could be coded I have no idea
The user could have a drop drown area priorty list to be used if no country is present in the place field.
How that could be coded I have no idea
- tatewise
- Megastar
- Posts: 27075
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Map Life Facts Top Level Domain
Thanks John, I could offer various ways to allow users to bias the plotting, and users can already do it themselves by ensuring their place names include a country.
I was hoping to find a way of automatically forcing Google to do what its own documentation says it should be doing by default.
I was hoping to find a way of automatically forcing Google to do what its own documentation says it should be doing by default.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- BillH
- Megastar
- Posts: 2179
- Joined: 31 May 2010 03:40
- Family Historian: V7
- Location: Washington State, USA
Map Life Facts Top Level Domain
Mike,
How about offering a place in the preference options to specify the country to use as the default for the region biasing?
Bill
How about offering a place in the preference options to specify the country to use as the default for the region biasing?
Bill
- tatewise
- Megastar
- Posts: 27075
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Map Life Facts Top Level Domain
I have experimented with a Set Preferences Option for Region Biasing that seems to work well, and often improves plotting accuracy.
An advantage of this approach is that if you live in Canada, but researching family history in the UK, you can set the Region Biasing to the UK for plotting locations there.
Then if you discover a branch of your family in say Australia you can switch the Region Biasing to Australia while plotting locations there.
Once a location is plotted with Lat/Longitude values then it does not get plotted again, unless you choose to, so it is unaffected by the Region Biasing when Geocoding unplotted locations.
I have also allowed the Region Biasing to be turned off.
This feature should be in the next version.
An advantage of this approach is that if you live in Canada, but researching family history in the UK, you can set the Region Biasing to the UK for plotting locations there.
Then if you discover a branch of your family in say Australia you can switch the Region Biasing to Australia while plotting locations there.
Once a location is plotted with Lat/Longitude values then it does not get plotted again, unless you choose to, so it is unaffected by the Region Biasing when Geocoding unplotted locations.
I have also allowed the Region Biasing to be turned off.
This feature should be in the next version.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry