Google Maps V2 epoly2 by Mike How to get states xml - javascript

I am curious about http://econym.org.uk/gmap/states.xml
how did he generate the states i would like to generate it for Canada... but cant figure out where on google he found that xml or how he generated it.. any ideas?

Hard to say, but there are various Creative Commons and ODC sources for data like this, such as those on libremap.
I don't have the time to google around for Canadian data, but I'm sure it's out there.

You can find gml files here which are actual xml files.
http://www.geobase.ca/geobase/en/search.do?produit=cgn&decoupage=province&language=en

Related

Read Google App Script Files from another script

I am looking to create a little Google App Script to parse another GAS file to pull out the functions and any jsdoc type comments, and then display it.
Like if you navigate to a script you can get the revision history etc, but I wanted to be able to pass in a Drive folder containing multiple script files and develop a front end to display each's content.
I know about the Google Drive REST API with exportLinks do download as JSON.
I wondered if there was a simpler way to do it from another GAS file, or would I need to URLFetch of some description to do it over the RestAPI?
I have tried searching for similar things but they always lead back to the DriveAPI.
Any help with a starting place, or what GAS Objects I should start looking at?
Thank you
You have to use the REST based Drive API, there is really no other alternative. However, you don't need to use URLFetch to access it. Google Apps Script has what's known as Advance Google Services a collection of interfaces that grant native access to many REST based APIS including the Drive API.
You can check out the Drive specific documentation here. Its somewhat sparse, so you'll often have to fall back on the REST based documentation as well as rely on autocomplete inside the script editor to make sense of things.

Exporting Adobe Tracker data / obtaining Tracker RSS feed

I'm attempting to "extract" any data from Adobe tracker. For example, number of comments, reviewer name. I can't find any way to do this so far. I know that Tracker just uses RSS feeds but I can't find WHERE exactly all of this is located and where to pull it from. Has anyone ever done this before? Any help would be appreciated.
I've done it. It's pretty straightforward. The repository where you are collecting the comments will have a bunch of XML files. There'll be a folder for each document at the root of the repository and then an XML (RSS) file for each user in each document folder. Each comment by that user is an "item" in the RSS. There are a bunch of other details about the comment as well and there are extensions to RSS that Adobe uses. Those are in the documentation at the link below.
Tracker Documentation:
http://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/Acro12_MasterBook/Tracker_Introduction/About_Acrobat_Tracker.htm

Capturing a csv download as an array load instead using Google Script

I've spent a few days searching around the site looking for what I was after, but unable to find exactly what I'm looking for.
Basically, I want to be able to call this URL, and instead of it starting a CSV download, I want to capture the output using google script to populate a google spreadsheet:
http://www.footytips.com.au/cfm/ft/sub/downloadLadder.cfm?sort=2&fg=competitions&ff=default&sportId=2&page=1&competitionId=220363&gameType=tips&gameCompId=46295&view=ladderScores&round=1
Basically, I'm not quite sure where to start. I wasn't able to debug the javascript in-browser effectively to find if a direct path to the CSV is produced at any time.
Any help would be appreciated!
Cheers.
May be you could use google's fusion tables:
https://support.google.com/fusiontables/answer/171181?hl=en
https://developers.google.com/fusiontables/docs/v1/reference/table/importRows

Where can I get the .geojson file for India and not separate files for each state/territory or any other distinction?

Does India have a .geoJSON file? I want to make data visualization using d3.js for the states, cities and hence need the GEOJSON File representing India. Where should I start from or what should be my approach?
Also
Mike's Tutorial doesn't help much for a Windows guy dealing with conversion of geographical data for the first time.
Please help.
Thanks,
http://download.geonames.org/export/dump/
here you can get all the countries geojson files..
check it out..
and there are lots of tutorials available to do the task you requested...
http://www.schneidy.com/Tutorials/MapsTutorial.html
http://techslides.com/d3-world-maps-tooltips-zooming-and-queue/
apart from these you need to search and find tutorial to learn much more concepts...
These two are the basic tutorials to start off with maps in d3.

How to consume GTFS feed in Google Map v3 using Javascript?

I'm first time trying to use GTFS(General Transit Feed Specification) with Google Maps as per the Google developers page i have understood the concept of .txt files which are used as feed and for making a demo i downloaded a transit zip files from Google developers page. but I'm not getting how to use those transit files to show information on map. I tried to search tutorial for the same but could not find anything useful. Do i need to parse all those files to show in map or there is something different implementation.
I'm confused.
Please bear me with my lack of knowledge regarding GTFS.
If you want to display stops and routes on a map, you can use gtfs-to-geojson to convert GTFS to GeoJSON that can be loaded onto a Google Map or Mapbox.
Install gtfs-to-geojson:
npm install gtfs-to-geojson -g
Setup a config.json file, then run:
gtfs-to-geojson --configPath /path/to/your/config.json
The tool will output a folder of GeoJSON files.
As far as I know, GTFS is not yet "plug and play" ready - there's no simple way to just load up a GTFS dataset and work with it or query it on Google Maps, using either Google's web interface or their Javascript libraries.
Getting this working requires:
Setting up a (SQL) database and importing the GTFS dataset into that database.
Setting up a query system to get the information you want out of the SQL database (e.g., a web front-end that queries the database backend).
Feel free to look at some examples from around the web:
Broader GTFS discussion, and a link to a PostgreSQL + R solution from James Wong
MongoDB + node.js from Brendan Nee

Categories