icalialabs / sepomex Goto Github PK
View Code? Open in Web Editor NEWA REST API for the SEPOMEX database
A REST API for the SEPOMEX database
Hi!
When I make the request with ajax it does not return a response. in the console it shows the error which is a CORS problem.
The code I use for the request is:
var url = "http://sepomex.icalialabs.com/api/v1/zip_codes?zip_code=" + CP;
$.ajax({
url : url,
type: "GET",
dataType : "JSON",
async: true,
cache: false
})
.done(function(data,status) {
console.log(data)
})
.fail(function(xhr, status) {
console.error(xhr);
});
And the error it returns is:
Access to XMLHttpRequest at 'http://sepomex.icalialabs.com/api/v1/zip_codes?city=guadalupe&state=nuevo%20leon' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
This problem appeared since yesterday (07/28/2020) because before it worked normally.
Sorry for my English
Use local read-only sqlite database checked-in
addgroup: The group `root' already exists.
useradd: group '1000' does not exist
ERROR: Service 'web' failed to build : The command '/bin/sh -c addgroup --gid ${DEVELOPER_GID} ${DEVELOPER_USERNAME} ; useradd -r -m -u ${DEVELOPER_UID} --gid ${DEVELOPER_GID} -d /code -c "Developer User,,," ${DEVELOPER_USERNAME}' returned a non-zero code: 6
Rails 4.1.12 has a few vulnerabilities.
Update to >= 4.2.5
I found that some CPs are returning nothing as result
for example 11570
in the sepomex info it returns values, and csv also do have info
IMplement the following jobs:
I tried to call the API but I didn't receive a response.
Quick question, who is responsible for updating this API? Is it SEPOMEX or Icalia? Is it reasonable to create code linking to this? (meaning will it be updated or maintained as needed?).
thanks!
...right now is slow as f
When I request for example:
https://sepomex-api.herokuapp.com/api/v1/states/24/municipalities
Its return:
{
"municipalities": [
{
"id": 106473,
"name": "San Luis Potosí",
"municipality_key": "028",
"zip_code": "78001",
"state_id": 24
},
{
"id": 106474,
"name": "San Luis Potosí",
"municipality_key": "028",
"zip_code": "78001",
"state_id": 24
},
{
"id": 106475,
"name": "San Luis Potosí",
"municipality_key": "028",
"zip_code": "78001",
"state_id": 24
},
Even if I ask for a specific municipality it returns the same:
https://sepomex-api.herokuapp.com/api/v1/municipalities/106473
https://sepomex-api.herokuapp.com/api/v1/municipalities/106474
How I am supposed to use the service?
https://sepomex-api.herokuapp.com/api/v1/zip_codes
or
https://sepomex.icalialabs.com/api/v1/zip_codes
first option works, but apparently with old data, and second options gives me a timeout error with no response
Good afternoon, I have problems connecting to the api
It is possible to request more than 15 elements?
For example the 32 states
Thanks
Right now, we download the CSV file from the government site.
We need a task that downloads this CSV file for us, and triggers the database udpate
Apply whatever it takes to migrate to Google Cloud.
When calling:
curl -X GET http://sepomex.icalialabs.com/api/v1/cities/2
It returns:
{"id":2,"name":"Aguascalientes","state_id":2}
BUT when you call:
curl -X GET http://sepomex.icalialabs.com/api/v1/cities/3
It returns:
{"id":3,"name":"","state_id":2}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.