-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathGeocoded.js
More file actions
28 lines (24 loc) · 985 Bytes
/
Geocoded.js
File metadata and controls
28 lines (24 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
if (typeof GeocoderJS === "undefined" && typeof require === "function") {
var GeocoderJS = require("./GeocoderJS.js");
}
;(function (GeocoderJS) {
"use strict";
GeocoderJS.Geocoded = function() {
this.other = {};
};
GeocoderJS.Geocoded.prototype = {
getCoordinates: function() {return[this.latitude, this.longitude];},
getLatitude: function() {return this.latitude;},
getLongitude: function() {return this.longitude;},
getBounds: function() { return this.bounds;},
getStreetNumber: function() {return this.streetNumber;},
getStreetName: function() {return this.streetName;},
getCity: function() {return this.city;},
getZipcode: function() {return this.postal_code;},
getCityDistrict: function() {},
getCounty: function() { return this.countryName;},
getCountyCode: function() { return this.country_code;},
getRegion: function() {return this.region;},
getOther: function () {return this.other;}
};
})(GeocoderJS);