Skip to main content
Solved

Reading a Google Map from Map's URL

  • August 11, 2017
  • 6 replies
  • 413 views

Forum|alt.badge.img+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

Best answer by 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

Forum|alt.badge.img

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.


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • August 13, 2017

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.

 

 


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • August 13, 2017

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


mygis
Supporter
Forum|alt.badge.img+14
  • Supporter
  • August 14, 2017

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

 


Forum|alt.badge.img+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).

 


Forum|alt.badge.img
@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.