Skip to main content
Solved

Reading a Google Map from Map's URL


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.

View original
Did this help you find an answer to your question?

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
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • August 13, 2017
gerhardatsafe wrote:

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
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • 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
Contributor
Forum|alt.badge.img+12
  • Contributor
  • August 14, 2017
gerhardatsafe wrote:

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
gerhardatsafe wrote:

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
billnjarheim wrote:
@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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings