New answers tagged

0

You need to format the LINESTRING (path) in your nodejs server : Something like : LINESTRING(0 0, 1 1, ....) --> WKT FORMAT OR '{type : LineString, coordinates : [[0,0],[1,1], ...]}' --> GEOJSON FORMAT Now you should pass this to your query like this : SELECT m.* FROM merchants m WHERE ST_Distance(ST_MakePoint(m.longitude, m.latitude), ...


0

Use AJAX. In jQuery style, something like this should do what you are tryingto accomplish: <form> Type Zone Number:<br> <input type="text" name="zone" id="zone"/><br> <input type="submit" value="Submit" id="btn-tubline-submit"/> </form> <script> $("#btn-tubeline-submit").on("submit", function(e){ ...


2

I've managed to integrate StreetView into my app without too much trouble. It's based on geolocation and the code for the event listener is below: // update streetview when the position changes. session.Geolocation.once('change', function () { // Add animation to the render pipeline var p = session.Geolocation.getPosition(); var coord3857 = ...


0

Since you downloaded the OSM data I would suggest you convert it to GeoJSON, so you can work with Turf.js, which accepts GeoJSON as input data. To convert data to GeoJSON you can work with different tools, such as geojson.io or QGIS. Once everything is in GeoJSON you can use turf.nearest (documentation and example). Since you are probably testing a point ...


0

You can save your data as a text file (one record per line) then batch geocode it using this service: http://geocode.xyz/batch (works for most european countries) or, you can write your own code to access the REST/JSON API: http://geocode.xyz/api (it is free for unlimited lookups)


0

by far the best and easiest geocoder I have used https://pypi.python.org/pypi/geocoder/1.8.0 bing maps, google maps, OSM etc..



Top 50 recent answers are included