* Google Mapping Plugin

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 16 Jul 2011 10:41

I am currently working on a Goggle Mapping plugin for FH5.

As the moment is shows, Individual events, Family as Spouse events and children's births. Are there any other events you would include?


ID:5256
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
PeterR
Megastar
Posts: 1129
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

Google Mapping Plugin

Post by PeterR » 16 Jul 2011 11:01

Burial would be useful.
Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 16 Jul 2011 11:36

It already includes all Individual events.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 16 Jul 2011 12:43

If you want to try it out please download :

http://www.fhug.org.uk/pushfile.php?fil ... nts.fh_lua
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 16 Jul 2011 12:54

Is this how the text output is supposed to look, Jane?

   Born 3 March 1905 in Merthyr Tydfil, Glamorgan, Wales
   Census 2 April 1911 in Merthyr Tydfil, Glamorgan, Wales
   RESI Resident in Merthyr Tydfil, Glamorgan, Wales 9 February 1924 9 February 1924 in Merthyr Tydfil, Glamorgan, Wales
   with Margaret Ellen ROBERTS:
   Married 9 February 1924 in Merthyr Tydfil, Glamorgan, Wales
   OCCU Coal-miner (hewer) January 1925
   Child:Agnes Margaret JONES:
   Born 19 January 1925 in Merthyr Tydfil, Glamorgan, Wales
   OCCU Coal-hewer October 1931
   OCCU Lamp Manufacturer's Store Keeper May 1948
   RESI Resident in Yardley, Birmingham, England May 1948 May 1948 in Yardley, Birmingham, England
   Died 10 May 1948 in Yardley, Birmingham, England
   OCCU Coal miner

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 16 Jul 2011 13:09

At the moment yes, there is a 'feature' on the fhGetDisplayText() for Attributes and although I can work around it I want to show Simon the issue, residence is being reported as an attribute and I think fh is treating it like an event.

Also I can't see a way to return the 'nice' name for Attributes. So I have raised both in the Beta Forum.

Did the mapping part work ok?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 16 Jul 2011 13:14

It worked a treat, and I think this is going to be really useful!

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 16 Jul 2011 17:03

I have improved the Residence support by making it a special case. Feel free to download again if you want.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 16 Jul 2011 20:51

Thanks, Jane. That looks better!

If only Google Maps would recognise places that no longer exist or have changed their names...

avatar
Cambiz
Famous
Posts: 235
Joined: 26 Sep 2003 23:30
Family Historian: None

Google Mapping Plugin

Post by Cambiz » 16 Jul 2011 21:06

Jane,
I've had a few of strange results for this - I don't know if its the plug in or Google.
I put in myself and two events for Plumstead (SE London) show as Silicon Court, Milton Keynes and two for Sydenham, Kent (near Brixton) show as St Peter's Rd Whitstable.
Putting in a Fireman ancestor, I initially get OVER_QUERY_LIMIT and then Shooters Hill and New Cross are in deepest Kent (Margate and Eythorne respectively).

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 16 Jul 2011 23:04

Do you have full places in eg Plumbstead, London, England?

I have not seen any problems with my own tree, but all my places are qualified to county level.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
Cambiz
Famous
Posts: 235
Joined: 26 Sep 2003 23:30
Family Historian: None

Google Mapping Plugin

Post by Cambiz » 17 Jul 2011 00:14

I have Plumstead, Kent, England (residence and marriage) although I think maybe I should have Plumstead, London, England as at the time of the events not even the Post Office considered it Kent.

From what Cole Valley Girl says, it looks like its Googlemaps that is the problem, having no historic ability.  

With regards to use of the plugin I try to associate the event with the contemporary location of the place e.g. Lambeth, Surrey pre-1889 and Lambeth, London post-1889. I'm particularly vain when it comes to Sydenham as it was in Kent when I was born (parents and brother are mere Londoners) and did not become part of London until a couple of years after I was born. This kind of precludes me from getting the best out of the plugin.

How does TNG (which I believe has a similar mapping thing) deal with places that move counties etc?

Finally is there a maximum number of facts/events which would account for the  OVER_QUERY_LIMIT?

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 17 Jul 2011 09:32

I have not hit the limit yet, as I said I have only just started trying to get Google Maps to integrate and my Family don't move around much, I may need to put a time delay in if there are more than 20 places to encode I will try and play with that when I have a moment, and look at adding a delay between each set of 20 addresses.

I haven't looked at the TNG solution, lately, but I think you can add Alternate place names in to the database, my script is simply building a new Web page for each person so, I don't think I can do that.

Chris could you try adding

strPlaces = strPlaces..'usleep(66666);n'

into the place building routine near the end of the script

eg

for i,count in pairs(tblPlaces) do
strPlaces = strPlaces..'AddAddress(''..i..'',''..i..' '..count..' Events');n'
if max < count then
max = count
mainPoint = '''..i..'',''..i..' '..count..' Events''
end
strPlaces = strPlaces..'usleep(66666);n'
end
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 17 Jul 2011 09:43

I had a thought on the 'Moving Places' problem.

We could have a second plugin to maintain a cross reference so you could convert places for Google Maps. Would that help?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 17 Jul 2011 11:22

A cross reference would help... including an option for place to latitude/longitude perhaps? I'm thinking of cases where not only the county has changed, but the name has changed completely or the place has ceased to be shown on maps. For example, loads of my ancestors lived in Llanfair Nant Y Gof, Pembrokeshire, Wales but the nearest named place that Google recognises is Trecwn which isn't exactly the same place.

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 17 Jul 2011 12:19

So what we would need would be something like

location['Plumstead, Kent, England'] = {
modern = 'Plumstead, London, England',
long = 'xxxxxx',
lat = 'zzzzzz'
}

You could also have
location['Plumstead, Kent, England'] = {
modern = 'Plumstead, London, England'
}

Where Google Maps are working correctly with just the change of county.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 17 Jul 2011 12:26

That would be good.

It would also be good to be able to generate map html for everyone in a named list rather than one at a time.

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 17 Jul 2011 12:48

The second one should not be too bad, as I think I have the base logic sorted. How would you like to see people on the map, different coloured icons? Also would you still want to see the events, as with a lot of people it could get quite unwieldy to show all the events for everyone.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 17 Jul 2011 12:54

I was actually thinking of one page per person (formatted as now) rather than one page for all people...

If it was one page for a group of people, I don't think it would make sense to show all events. Different coloured markers for different people would make sense though.

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 17 Jul 2011 16:12

The multi-page option would be easy enough, It could prompt for a folder to put all the pages in. I'll think on it.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 19 Jul 2011 16:45

Ok there is a new version of the Mapping Plug in here
http://www.fhug.org.uk/pushfile.php?fil ... nts.fh_lua

It now includes an option to create lots of maps and put them in a folder of your choice.

Also if you download

http://www.fhug.org.uk/pushfile.php?fil ... nce.fh_lua

You can maintain alternate place names and or Longitudes and Latitudes for your Places.

Just select the place from the drop down and enter the data.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 19 Jul 2011 17:03

Looking good, Jane -- thank you!

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 19 Jul 2011 17:13

A little snag....

I have used the geo-code maintenance to map Llanfair nant Y gof, Pembrokeshire, Wales to Trecwn, Pembrokeshire, Wales. When I map the events, I get the error message LLanfair Nant Y Gof, Pembrokeshire, Wales 17 events was not found for the following reason: ZERO_RESULTS and the map displayed is centred on Sydney, Australia. If I move the focus of the map to Trecwn, there is a marker shown there for 17 events as I would expect.

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Google Mapping Plugin

Post by Jane » 19 Jul 2011 17:29

Can you send me the web page as an attachment (and the Map Geo settings file ( from your Project data/Plugins folder) and I will try and work out why it's not working.


edit: Is that location the most common place on that person?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Google Mapping Plugin

Post by ColeValleyGirl » 19 Jul 2011 17:52

Yes, it's the most common place on the person.

I can't find anything in ProgramData/Calico Pie/Family Historian 5.0 Beta/Plugins except the plug in files themselves.

Post Reply