use of HERE.com

login

login at: https://account.here.com/ but can't go anywhere from there.

login: skyking@ pw: z...x

App ID   iHhVL3W02cDihHWduigP
App Code e07OhHXvVW1y3loeiXVaHA
// Instantiate the Platform class with authentication and authorization credentials:
var platform = new H.service.Platform({
    app_id:   'iHhVL3W02cDihHWduigP',
    app_code: 'e07OhHXvVW1y3loeiXVaHA'

    ,useHTTPS: true
    ,useCIT: true
});

reference:

    var city        = [ -77.0596,    38.9383   ];
    var country     = [ -77.031414,  39.032967 ];
    var burlington  = [ -79.484851,  36.085808 ];
    var ken         = [ -82.363946,  36.439739 ];
    var david_nancy = [ -80.792724,  35.551119 ];

for H.Map() center:

    center: { lng: -77.0596,   lat:  38.9383   },   // city place
    center: { lng: -77.031414, lat:  39.032967 },   // country place
    center: { lng: -79.484851, lat:  36.085808 },   // devonshire ln
    center: { lng: -82.363946, lat:  36.439739 },   // piney flats
    center: { lng: -80.792724, lat:  35.551119 },   // mooresville

some local addresses:

    3701 Connecticut Ave. NW, Washington, DC
    849 Upshur St NW, Washington, DC 20011

docs

tutorials: https://openlocation.here.com/resources/documentation

api docs: https://developer.here.com/documentation#geocoder

other docs: https://developer.here.com/documentation/maps/topics/discovering-places.html

Maps API for JavaScript:

routing: https://developer.here.com/api-explorer/maps-js/v3.0/servicesRouting/map-with-route-from-a-to-b

can't find where the .pdf's are...

5/30/2019

resurrecting HERE work...

blog posts:

(Part 1: Basic Map Set-up) https://developer.here.com/blog/who-wants-ice-cream-a-here-maps-api-for-javascript-tutorial-part-1-basic-map-set-up

(Part 2: Geolocation) https://developer.here.com/blog/who-wants-ice-cream-a-here-maps-api-for-javascript-tutorial-part-2-geolocation

(Part 3: Basic Routing) https://developer.here.com/blog/who-wants-ice-cream-a-here-maps-api-for-javascript-tutorial-part-3-basic-routing

(Part 4: Advanced Routing) https://developer.here.com/blog/who-wants-ice-cream-a-here-maps-api-for-javascript-tutorial-part-4-advanced-routing

(Part 5: Refactoring) https://developer.here.com/blog/who-wants-ice-cream-a-here-maps-api-for-javascript-tutorial-part-5-refactoring

(Part 6: Reacting to outside influences) https://developer.here.com/blog/who-wants-ice-cream-a-here-maps-api-for-javascript-tutorial-part-6-reacting-to-outside-influences

(Part 7: Traffic) https://developer.here.com/blog/who-wants-ice-cream-a-here-maps-api-for-javascript-tutorial-part-7-traffic

(Part 8: Wrapping Up) https://developer.here.com/blog/who-wants-ice-cream-a-here-maps-api-for-javascript-tutorial-part-8-wrapping-up

What would you build to improve flying? https://developer.here.com/blog/what-would-you-build-to-improve-flying

How to Migrate from Google Maps to HERE Dynamic Maps https://developer.here.com/blog/how-to-create-a-here-dynamic-map-like-google-maps

Predictive Routing Using Traffic Patterns https://developer.here.com/blog/predictive-routing-using-traffic-patterns

Suggesting Places with jQuery, Geolocation, and the HERE Places API https://developer.here.com/blog/suggesting-places-with-jquery-geolocation-and-the-here-places-api

Searching for Points of Interest with the HERE Places API in a Vue.js Application https://developer.here.com/blog/searching-for-points-of-interest-with-the-here-places-api-in-a-vue.js-application

stupid: Turn Text Into HERE Maps with Python NLTK https://developer.here.com/blog/turn-text-into-here-maps-with-python-nltk

Building an App for Routing to Nearby Water Fountains with HERE XYZ https://developer.here.com/blog/building-an-app-routing-to-water-fountains-here-xyz

The landscape of Outdoor Mapping and Location Services by Gartner https://developer.here.com/blog/the-landscape-of-outdoor-mapping-and-location-services-by-gartner

February Release Highlights Including Searching for Fast Food Snack Places by Distance https://developer.here.com/blog/searching-for-fast-food-snack-places-by-distance-and-other-february-release-highlights

Picking an Interactive Map Theme with Vue.js https://developer.here.com/blog/picking-an-interactive-map-theme-with-vue.js

notes on overpass-turbo and ice cream:

TODO: move this to its own notes page???

example is at: https://overpass-turbo.eu/

theirs is:

node
  [amenity=drinking_water]
  ({{bbox}});
out;

after navigating to cleveland park, it shows interesting things...

other amenities:

    [amenity=fountain]         seems fine
    [amenity='ice cream']      nothing
    [amenity=ice_cream]      yes, and it includes yogiberry

wikipedia says:

There is disagreement on whether amenity=ice_cream should be used or whether shop=ice_cream should be used. The meaning of both tags are about the same (the difference being amenity=ice_cream for some reason may be used for frozen yogurts too).

An alternative approach for tagging the same thing would be to tag it with cuisine=ice_cream, together with amenity=fast_food or amenity=cafe.

  [amenity=cafe][cuisine=ice_cream]       looks good, some results
  [amenity=fast_food][cuisine=ice_cream]  about the same
  [shop=ice_cream]                        nothing

Things to try:

done: amenity=cafe + cuisine=ice_cream
done: shop=ice_cream
todo: amenity=fast_food + cuisine=ice_cream
todo: ice_cream=yes

wikipedia on IceCreamParlors: https://en.wikipedia.org/wiki/List_of_ice_cream_parlor_chains

some interesting topics on use of command line: Geospatial icecream analysis with WGET & GDAL/OGR: https://www.researchgate.net/profile/Harald_Schernthanner/publication/316472198_A_gentle_introduction_to_GDALOGR_Never_used_the_command_line_No_problem/links/59003d9e45851565029f584c/A-gentle-introduction-to-GDAL-OGR-Never-used-the-command-line-No-problem.pdf

this one seems similar, but not powerpoing: https://maptimeber.tumblr.com/post/160361012770/never-used-the-command-line-where-is-the-light/embed

specific icecream tests:

???

with bounding box over Burlington, and [amenity=ice_cream]: https://overpass-turbo.eu/s/JHS

which is:

    node
      [amenity=ice_cream]
      (36.011,-79.534,36.178,-79.363);
    out;

A: OSM editor does not show that the building is marked, thus, nothing to search on

A: buildings marked downtown include: train station, old depot, library, paramount theater

A: buildings not marked include: almost everything else (incl Zack's)

yellowpages

anywho: https://www.anywho.com/yellow-pages

yellowpages: https://www.yellowpages.com/

and a query is: https://www.yellowpages.com/search?from=AnyWho&tracks=true&search_terms=ice+cream&geo_location_terms=burlington%2C+nc

on search="ice cream":

    Mayberry Restaurant & Ice Cream Creations
    Graham Soda Shop and Grill
    that place in Mebane

a search for "Soda Shop" brings up the Graham place (but not Mayberry's) and also BP station and several convienence stores

to remove:

    Convenience Stores
    Gas Stations
    Liquor Stores

now as cherrypy rest service...

wtsearch.py seem ok standalone...

now for rest api:

Q: how to restart cherry???
A: .autoexec.cgi; HOWEVER, it __needs__ specific import path
A: NO, even that didn't work.  MUST have sys.path()

attempts at using here.com to process geojson

Work With GeoJSON Data - https://developer.here.com/olp/documentation/data-user-guide/shared_content/topics/olp/concepts/working-with-geojson-data.html

which leads to...

Data Visualization Library Developer Guide - https://developer.here.com/olp/documentation/data-visualization-library/dev_guide/index.html

possible actual code: https://stackoverflow.com/questions/51729938/add-info-bubbles-to-here-maps

and markerOverlay: https://venues.here.com/documentation/sdk/v0/example/marker-overlays

and more code: https://stackoverflow.com/questions/31401059/showing-a-content-div-on-hover-of-a-marker-in-here-maps

working (old) code!: http://heremaps.github.io/examples/explorer.html#infobubble-on-marker-click

possibly USEFUL js examples: https://github.com/heremaps/maps-api-for-javascript-examples

====================================================

git here examples moved to cherrypy:

may get these errors: No 'Access-Control-Allow-Origin' header is present on the requested resource.

All of the following examples use version 3 of the API

====================================================

finished.

Thursday, 6/27/2019

urls that return geojson: (outputs from geojson.io):

https://icecream.ilikecarrots.com/get_topic?topic=ice_cream&lat=38.9610043496269&lng=-77.07317226711893

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "name": "Ben & Jerry's",
        "addr": "5612 Connecticut Ave NW, Washington,  DC 20015 ",
        "cate": "Ice Cream & Frozen Desserts",
        "link": "http://www.benjerry.com",
        "phon": "(202) 237-0569",
        "geo": [
          "-77.0763",
          "38.96528"
        ]
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          -77.0763,
          38.96528
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "name": "froYo",
        "addr": "5252 Wisconsin Ave NW, Washington,  DC 20015 ",
        "cate": "Ice Cream & Frozen Desserts;Yogurt",
        "link": "http://froyoyogurt.com",
        "phon": "(202) 686-5805",
        "geo": [
          "-77.08515",
          "38.95875"
        ]
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          -77.08515,
          38.95875
        ]
      }
    },

https://icecream.ilikecarrots.com/get_mylocs?rad=5&lat=39.03153723516218&lng=-77.04390529892407

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "name": "Ruan Thai",
        "addr": "11407 Amherst Ave, Wheaton,",
        "cate": "Thai",
        "desc": "Thai,94%</br><a href=\"http://www.urbanspoon.com/r/7/105525/restaurant/DC/Ruan-Thai-Wheaton\">Ruan Thai</a>",
        "symb": "thai"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          -77.0468092,
          39.0309587
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "name": "Nava Thai Noodle and Grill",
        "addr": "11301 Fern St, Wheaton,",
        "cate": "Thai, Sushi",
        "desc": "Thai, Sushi,89%</br><a href=\"http://www.urbanspoon.com/r/7/104348/restaurant/DC/Nava-Thai-Noodle-and-Grill-Wheaton\">Nava Thai Noodle and Grill</a>",
        "symb": "thai"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          -77.049252,
          39.040312
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "name": "Bangkok Garden",
        "addr": "4906 Saint Elmo Ave, Bethesda,",
        "cate": "Thai",
        "desc": "Thai,92%</br><a href=\"http://www.urbanspoon.com/r/7/100427/restaurant/DC/Bangkok-Garden-Bethesda\">Bangkok Garden</a>",
        "symb": "thai"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          -77.0973183,
          38.9886346
        ]
      }
    },

https://nominatim.openstreetmap.org/search?viewbox=-77.0,38.8,-77.2,38.99&bounded=1&format=geojson&addressdetails=1&q=ice%20cream&polygon_geojson=0&limit=10

{
  "type": "FeatureCollection",
  "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "place_id": 37800898,
        "osm_type": "node",
        "osm_id": 2906355783,
        "display_name": "Ice Cream Jubilee, Water Street Southeast, Navy Yard, Washington, District of Columbia, 20590, USA",
        "place_rank": 30,
        "category": "amenity",
        "type": "ice_cream",
        "importance": 0.201,
        "address": {
          "address29": "Ice Cream Jubilee",
          "road": "Water Street Southeast",
          "neighbourhood": "Navy Yard",
          "city": "Washington",
          "state": "District of Columbia",
          "postcode": "20590",
          "country": "USA",
          "country_code": "us"
        }
      },
      "bbox": [
        -77.0014515,
        38.8735608,
        -77.0013515,
        38.8736608
      ],
      "geometry": {
        "type": "Point",
        "coordinates": [
          -77.0014015,
          38.8736108
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "place_id": 236442215,
        "osm_type": "node",
        "osm_id": 5840368881,
        "display_name": "Nicecream Factory, 2831, Clarendon Boulevard, Market Common Clarendon, Clarendon, Arlington, Arlington County, Virginia, 22201, USA",
        "place_rank": 30,
        "category": "amenity",
        "type": "ice_cream",
        "importance": 0.201,
        "address": {
          "address29": "Nicecream Factory",
          "house_number": "2831",
          "road": "Clarendon Boulevard",
          "retail": "Market Common Clarendon",
          "suburb": "Clarendon",
          "locality": "Arlington",
          "county": "Arlington County",
          "state": "Virginia",
          "postcode": "22201",
          "country": "USA",
          "country_code": "us"
        }
      },
      "bbox": [
        -77.0923536,
        38.8883043,
        -77.0922536,
        38.8884043
      ],
      "geometry": {
        "type": "Point",
        "coordinates": [
          -77.0923036,
          38.8883543
        ]
      }
    },