Skip to content
/ fixmykml Public

Takes a KML file having entries with addresses but with no coordinates and looksup the geolocation using the HERE Geocoder API

Notifications You must be signed in to change notification settings

s-pic/fixmykml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FixMyKml

What is this?

This node-based application

  • loads a given kml
  • extracts placemarks having an address but no coordinates
  • takes the address and tries to resolve it to geo-coordinates using the HERE Geocoder API
  • attaches the address back to the parsed entry and
  • outputs the augmented kml file

Cool, how can I run it?

Get a HERE key

  • Get a HERE Developer Account, e.g. by picking a free plan.
  • Provide this app with authentication to the Geocoder API. You have two options:

Either get an API Key, then add the following entry to .env (what is this?):

API_KEY={here-goes-your-key}

Alternatively, get App ID and App Code for Here Maps). Add them to the .env file like so:

APP_ID={your-app-id}
APP_CODE={your-app-code

Install it

  • Install node
  • clone this repo, install dependencies using npm
  • Get a kml file that needs a coordinates lookup. Currently not more than 1 input file is supported
  • Put it under /data/input/

Run it

  • run npm start in the project root folder
  • check the logs for errors and success messages. You can get more detailed logs by setting DEBUG=true in config.js

Context

Developed during a data integration task while working for FixMyCity.

Open Tasks

Not sure if I find the time, but if this is useful to some one and if this gets picked up

  • support more than one file
  • provide example data

About

Takes a KML file having entries with addresses but with no coordinates and looksup the geolocation using the HERE Geocoder API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published