Skip to main content

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

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.


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.

 

 


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


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

 


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).

 


@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