[gnome-maps/wip/mlundblad/handle-osm-urls] WIP: place: Add parsing of OSM URLs
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/handle-osm-urls] WIP: place: Add parsing of OSM URLs
- Date: Thu, 13 Jun 2019 19:56:12 +0000 (UTC)
commit 520b6aa5b8f2827957d7467d776f9e5c9d174335
Author: Marcus Lundblad <ml update uu se>
Date: Thu Jun 13 21:54:54 2019 +0200
WIP: place: Add parsing of OSM URLs
src/place.js | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/place.js b/src/place.js
index 3a28423..c2b5f86 100644
--- a/src/place.js
+++ b/src/place.js
@@ -38,6 +38,9 @@ const DMS_COORDINATES_REGEX = new RegExp(
"i"
);
+const OSM_OBJECT_URL_REGEX =
+ new RegExp(/https?:\/\/(www\.)?openstreetmap\.org\/(node|way|relation)\/(\d+)/);
+
var Place = GObject.registerClass(
class Place extends Geocode.Place {
@@ -412,3 +415,7 @@ Place.parseCoordinates = function(text) {
return null;
}
};
+
+function matchOSMURL(text) {
+
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]