Solved

Reading a Google Map from Map's URL

  • 12 August 2017
  • 6 replies
  • 64 views

Badge +1

Hello,

I have the following map:

https://www.google.com/maps/d/viewer?mid=1mtB5peL8y8Xc0aj85d5OMZX-sFs

Where I would like to use FME to read directly (online) from the map and extract out the desired pieces of information to publish in our Open Data Catalogue.

Everything I have found suggests to export to a KML file but that requires manual intervention and I want this as an automated process.

I am open to suggestions.

Thank you

icon

Best answer by gerhardatsafe 12 August 2017, 02:30

View original

6 replies

Badge

Hi @billnjarheim

You should be able to use the URL that is used to export the KML (in your case: https://www.google.com/maps/d/kml?mid=1mtB5peL8y8Xc0aj85d5OMZX-sFs&forcekml;=1) in an HTTPCaller to download the KML to a file. Then you can read the KML file with a FeatureReader.

Userlevel 4
Badge +30

Hi @billnjarheim

You should be able to use the URL that is used to export the KML (in your case: https://www.google.com/maps/d/kml?mid=1mtB5peL8y8Xc0aj85d5OMZX-sFs&forcekml;=1) in an HTTPCaller to download the KML to a file. Then you can read the KML file with a FeatureReader.

Good answer.

 

 

Userlevel 4
Badge +30

Hi @billnjarheim, the @GerhardAtSafe sent you a perfect answer.

Just complemeting for the automate process to execute this Workspace, you can use the Schedule from FME Server.

Thanks,

Danilo

Badge +8

Hi @billnjarheim

You should be able to use the URL that is used to export the KML (in your case: https://www.google.com/maps/d/kml?mid=1mtB5peL8y8Xc0aj85d5OMZX-sFs&forcekml;=1) in an HTTPCaller to download the KML to a file. Then you can read the KML file with a FeatureReader.

Thanks @GerhardAtSafe

 

Badge +1

Hi @billnjarheim

You should be able to use the URL that is used to export the KML (in your case: https://www.google.com/maps/d/kml?mid=1mtB5peL8y8Xc0aj85d5OMZX-sFs&forcekml;=1) in an HTTPCaller to download the KML to a file. Then you can read the KML file with a FeatureReader.

@GerhardAtSafe Thank you.

 

Using your recommendation, I have proceeded onto the next step of my work. With the map URL that I had in my original post, there are different colored icons. The different colors represent that usability for that pay station; is there anyway to determine via the kml export the color of the icon? I have been exploring all of the format attributes and I have not found any that return the icon color (despite there being a number of color attribute options available).

 

Badge
@GerhardAtSafe Thank you.

 

Using your recommendation, I have proceeded onto the next step of my work. With the map URL that I had in my original post, there are different colored icons. The different colors represent that usability for that pay station; is there anyway to determine via the kml export the color of the icon? I have been exploring all of the format attributes and I have not found any that return the icon color (despite there being a number of color attribute options available).

 

I would take a look the Style & StyleMap feature types of the KML file. I think the styles and their relationship to the features are stored in there.

 

Reply